home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_4026 < prev    next >
Encoding:
Text File  |  2010-10-30  |  1.6 KB  |  42 lines

  1. __license__   = 'GPL v3'
  2. __author__ = u'Marc T\xf6nsing'
  3.  
  4. from calibre.web.feeds.news import BasicNewsRecipe
  5.  
  6. class GamespotCom(BasicNewsRecipe):
  7.  
  8.     title = u'Gamespot.com Reviews'
  9.     description = 'review articles from gamespot.com'
  10.     language = 'en'
  11.     __author__ = u'Marc T\xf6nsing'
  12.  
  13.     oldest_article = 7
  14.     max_articles_per_feed = 40
  15.     remove_empty_feeds = True
  16.     no_stylesheets = True
  17.     no_javascript = True
  18.  
  19.     feeds =  [
  20.                ('PC Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=5'),
  21.                ('XBOX 360 Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1029'),
  22.                ('Wii Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1031'),
  23.                ('PlayStation 3 Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1028'),
  24.                ('PlayStation 2 Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=7'),
  25.                ('PlayStation Portable Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1024'),
  26.                ('Nintendo DS Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1026'),
  27.                ('iPhone Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1049'),
  28.              ]
  29.  
  30.     remove_tags = [
  31.             dict(name='div', attrs={'class':'top_bar'}),
  32.             dict(name='div', attrs={'class':'video_embed'})
  33.             ]
  34.  
  35.     def get_cover_url(self):
  36.         return 'http://image.gamespotcdn.net/gamespot/shared/gs5/gslogo_bw.gif'
  37.  
  38.     def get_article_url(self, article):
  39.         return article.get('link') + '?print=1'
  40.  
  41.  
  42.