Improve USA Today

This commit is contained in:
Kovid Goyal 2012-01-08 09:11:32 +05:30
parent 554a351966
commit d144030deb

View File

@ -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'