home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / wichita_eagle.recipe < prev    next >
Text File  |  2011-09-09  |  1KB  |  30 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1294938721(BasicNewsRecipe):
  4.      title            = u'Wichita Eagle'
  5.      language = 'en'
  6.      __author__ = 'Jason Cameron'
  7.      description  = 'Daily news from the Wichita Eagle'
  8.      oldest_article = 1
  9.      max_articles_per_feed = 30
  10.      keep_only_tags = [dict(name='div', attrs={'id':'wide'})]
  11.      feeds          = [
  12.                                  (u'Local News',
  13.  u'http://www.kansas.com/news/local/index.rss'),
  14.                                  (u'National News',
  15.  u'http://www.kansas.com/news/nation-world/index.rss'),
  16.                                  (u'Sports',
  17.  u'http://www.kansas.com/sports/index.rss'),
  18.                                  (u'Opinion',
  19.  u'http://www.kansas.com/opinion/index.rss'),
  20.                                  (u'Life',
  21.  u'http://www.kansas.com/living/index.rss'),
  22.                                  (u'Entertainment',
  23.  u'http://www.kansas.com/entertainment/index.rss')
  24.                            ]
  25.  
  26.      def print_version(self, url):
  27.          urlparts = url.split('/')
  28.          newadd = urlparts[5]+'/v-print'
  29.          return url.replace(url, newadd.join(url.split(urlparts[5])))
  30.