mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Improve USA Today
This commit is contained in:
parent
554a351966
commit
d144030deb
@ -11,7 +11,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
class USAToday(BasicNewsRecipe):
|
class USAToday(BasicNewsRecipe):
|
||||||
|
|
||||||
title = 'USA Today'
|
title = 'USA Today'
|
||||||
__author__ = 'calibre'
|
__author__ = 'Kovid Goyal'
|
||||||
description = 'newspaper'
|
description = 'newspaper'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
publisher = 'usatoday.com'
|
publisher = 'usatoday.com'
|
||||||
@ -47,32 +47,7 @@ class USAToday(BasicNewsRecipe):
|
|||||||
('Offbeat News', 'http://rssfeeds.usatoday.com/UsatodaycomOffbeat-TopStories')
|
('Offbeat News', 'http://rssfeeds.usatoday.com/UsatodaycomOffbeat-TopStories')
|
||||||
]
|
]
|
||||||
|
|
||||||
keep_only_tags = [dict(attrs={'class':'story'})]
|
auto_cleanup = True
|
||||||
|
|
||||||
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'])
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def get_masthead_url(self):
|
def get_masthead_url(self):
|
||||||
masthead = 'http://i.usatoday.net/mobile/_common/_images/565x73_usat_mobile.gif'
|
masthead = 'http://i.usatoday.net/mobile/_common/_images/565x73_usat_mobile.gif'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user