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

  1.  
  2. from calibre.web.feeds.news import BasicNewsRecipe
  3.  
  4. class Shacknews(BasicNewsRecipe):
  5.     __author__  = 'Docbrown00'
  6.     __license__   = 'GPL v3'
  7.     title          = u'Shacknews'
  8.     oldest_article = 7
  9.     max_articles_per_feed = 100
  10.     language = 'en'
  11.  
  12.     no_stylesheets = True
  13.     remove_tags = [dict(name='div', attrs={'class': ['nuggets', 'comments']}), 
  14.             dict(name='p', attrs={'class': 'videoembed'})]
  15.     keep_only_tags = [dict(name='div', attrs={'class':'story'})]
  16.     feeds          = [
  17.         (u'Latest News', u'http://feed.shacknews.com/shackfeed.xml'),
  18.         (u'PC', u'http://feed.shacknews.com/extras/tag_rss.x/PC'),
  19.         (u'Wii', u'http://feed.shacknews.com/extras/tag_rss.x/Nintendo+Wii'),
  20.         (u'Xbox 360', u'http://feed.shacknews.com/extras/tag_rss.x/Xbox+360'),
  21.         (u'Playstation 3', u'http://feed.shacknews.com/extras/tag_rss.x/PlayStation+3'),
  22.         (u'PSP', u'http://feed.shacknews.com/extras/tag_rss.x/PSP'),
  23.         (u'Nintendo DS', u'http://feed.shacknews.com/extras/tag_rss.x/Nintendo+DS'),
  24.         (u'iPhone', u'http://feed.shacknews.com/extras/tag_rss.x/iPhone'),
  25.         (u'DLC', u'http://feed.shacknews.com/extras/tag_rss.x/DLC'),
  26.         (u'Valve', u'http://feed.shacknews.com/extras/tag_rss.x/Valve'),
  27.         (u'Electronic Arts', u'http://feed.shacknews.com/extras/tag_rss.x/Electronic+Arts')
  28.          ]
  29.