Update Boston Globe Subscription

This commit is contained in:
Kovid Goyal 2019-05-01 13:31:43 +05:30
parent 7f099475b2
commit b018850f24
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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