From d144030debf1d3fa4185957ce2d9da5ea750d763 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Jan 2012 09:11:32 +0530 Subject: [PATCH] Improve USA Today --- recipes/usatoday.recipe | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/recipes/usatoday.recipe b/recipes/usatoday.recipe index 62c5f1c2da..38ddb0eb68 100644 --- a/recipes/usatoday.recipe +++ b/recipes/usatoday.recipe @@ -11,7 +11,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class USAToday(BasicNewsRecipe): title = 'USA Today' - __author__ = 'calibre' + __author__ = 'Kovid Goyal' description = 'newspaper' encoding = 'utf-8' publisher = 'usatoday.com' @@ -47,32 +47,7 @@ class USAToday(BasicNewsRecipe): ('Offbeat News', 'http://rssfeeds.usatoday.com/UsatodaycomOffbeat-TopStories') ] - keep_only_tags = [dict(attrs={'class':'story'})] - - remove_tags = [ - dict(attrs={'class':[ - 'share', - 'reprints', - 'inline-h3', - 'info-extras rounded', - 'inset', - 'ppy-outer', - 'ppy-caption', - 'comments', - 'jump', - 'pagetools', - 'post-attributes', - 'tags', - 'bottom-tools', - 'sponsoredlinks', - 'corrections' - ]}), - dict(name='ul', attrs={'class':'inside-copy'}), - dict(id=['pluck']), - dict(id=['updated']), - dict(id=['post-date-updated']) - ] - + auto_cleanup = True def get_masthead_url(self): masthead = 'http://i.usatoday.net/mobile/_common/_images/565x73_usat_mobile.gif'