Update Science News Recent Issues

This commit is contained in:
Kovid Goyal 2020-08-06 08:32:52 +05:30
parent 02dcac0702
commit 9557591321
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -28,10 +28,16 @@ class ScienceNewsIssue(BasicNewsRecipe):
auto_cleanup = False
keep_only_tags = [
dict(name="h1", attrs={'itemprop': 'headline'}),
dict(name="div", attrs={'property': 'rnews:articlebody schema:articleBody'}),
dict(name="div", attrs={'itemprop': 'author'}),
dict(attrs={'class': lambda x: x and (
'single__content___' in x or 'header-default__title___' in x or
'header-default__deck___' in x or 'header-default__figure___' in x
)})
]
remove_tags = [
dict(attrs={'class': lambda x: x and (
'newsletter-signup__wrapper___' in x
)})
]
feeds = [(u"Science News Headlines",
u'https://www.sciencenews.org/feeds/headlines.rss')]
u'https://www.sciencenews.org/feed')]