From 7a319807db3e0b4cd8cfdab7ada57f8901cfdb94 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Oct 2010 10:41:22 -0600 Subject: [PATCH] Gamespot Reviews by Marc Tonsing. Fixes #7344 (New Recipe: Gamespot.com Reviews) --- resources/recipes/gamespot.recipe | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 resources/recipes/gamespot.recipe diff --git a/resources/recipes/gamespot.recipe b/resources/recipes/gamespot.recipe new file mode 100644 index 0000000000..d9a5f20c23 --- /dev/null +++ b/resources/recipes/gamespot.recipe @@ -0,0 +1,41 @@ +__license__ = 'GPL v3' +__author__ = u'Marc T\xf6nsing' + +from calibre.web.feeds.news import BasicNewsRecipe + +class GamespotCom(BasicNewsRecipe): + + title = u'Gamespot.com Reviews' + description = 'review articles from gamespot.com' + language = 'en' + __author__ = u'Marc T\xf6nsing' + + oldest_article = 7 + max_articles_per_feed = 40 + remove_empty_feeds = True + no_stylesheets = True + no_javascript = True + + feeds = [ + ('PC Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=5'), + ('XBOX 360 Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1029'), + ('Wii Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1031'), + ('PlayStation 3 Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1028'), + ('PlayStation 2 Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=7'), + ('PlayStation Portable Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1024'), + ('Nintendo DS Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1026'), + ('iPhone Reviews', 'http://www.gamespot.com/rss/game_updates.php?type=5&platform=1049'), + ] + + remove_tags = [ + dict(name='div', attrs={'class':'top_bar'}), + dict(name='div', attrs={'class':'video_embed'}) + ] + + def get_cover_url(self): + return 'http://image.gamespotcdn.net/gamespot/shared/gs5/gslogo_bw.gif' + + def get_article_url(self, article): + return article.get('link') + '?print=1' + +