mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update Boston Globe Subscription
This commit is contained in:
parent
7f099475b2
commit
b018850f24
@ -28,12 +28,19 @@ class BostonGlobeSubscription(BasicNewsRecipe):
|
|||||||
timefmt = ' [%a, %d %b, %Y]'
|
timefmt = ' [%a, %d %b, %Y]'
|
||||||
needs_subscription = 'optional'
|
needs_subscription = 'optional'
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
|
dict(attrs={'class': lambda x: x and (
|
||||||
|
x.startswith('headline |') or x.startswith('subheader |') or
|
||||||
|
x.startswith('byline |') or x.startswith('image |') or
|
||||||
|
x.startswith('lead |') or x.startswith('body |')
|
||||||
|
)}),
|
||||||
classes('comic article__title methode__story article-header__headline lead-media figure article-header__byline article-content'),
|
classes('comic article__title methode__story article-header__headline lead-media figure article-header__byline article-content'),
|
||||||
]
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
classes('inline-newsletter ad skip-nav article-footer'),
|
classes('inline-newsletter ad skip-nav article-footer sharebar'),
|
||||||
|
dict(id='continue_button'),
|
||||||
dict(name=['meta', 'link'])
|
dict(name=['meta', 'link'])
|
||||||
]
|
]
|
||||||
|
remove_tags_after = dict(attrs={'class': lambda x:x and x.startswith('body |')})
|
||||||
remove_attributes = ['style']
|
remove_attributes = ['style']
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
# simultaneous_downloads = 1
|
# simultaneous_downloads = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user