From 0c0b55b5e87dc2ae8affe8ae0541c5842f026638 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 2 Dec 2009 14:51:15 -0700 Subject: [PATCH] Fix Endgadget recipe --- resources/recipes/endgadget.recipe | 53 +++++++++++++----------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/resources/recipes/endgadget.recipe b/resources/recipes/endgadget.recipe index 56fb81d336..a394c4cffc 100644 --- a/resources/recipes/endgadget.recipe +++ b/resources/recipes/endgadget.recipe @@ -1,31 +1,22 @@ -#!/usr/bin/env python - -__license__ = 'GPL v3' -__copyright__ = '2008, Darko Miletic ' -''' -engadget.com -''' - -from calibre.web.feeds.news import BasicNewsRecipe - -class Engadget(BasicNewsRecipe): - title = u'Engadget' - __author__ = 'Darko Miletic' - description = 'Tech news' - language = 'en' - - oldest_article = 7 - max_articles_per_feed = 100 - no_stylesheets = True - use_embedded_content = False - - keep_only_tags = [ dict(name='div', attrs={'class':'post'}) ] - remove_tags = [ - dict(name='object') - ,dict(name='div', attrs={'class':'postmeta'}) - ,dict(name='div', attrs={'class':'quigoads'}) - ] - - - feeds = [ (u'Posts', u'http://www.engadget.com/rss.xml')] - +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2008 - 2009, Darko Miletic ' +''' +engadget.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Engadget(BasicNewsRecipe): + title = u'Engadget' + __author__ = 'Darko Miletic' + description = 'Tech news' + language = 'en' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = True + + feeds = [ (u'Posts', u'http://www.engadget.com/rss.xml')] +