Update Scientific American

This commit is contained in:
Kovid Goyal 2022-08-04 08:14:21 +05:30
parent e004b057ed
commit da57bb0fac
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -22,6 +22,18 @@ class ScientificAmerican(BasicNewsRecipe):
remove_empty_feeds = True remove_empty_feeds = True
remove_javascript = True remove_javascript = True
timefmt = ' [%B %Y]' timefmt = ' [%B %Y]'
remove_attributes = ['height','width']
masthead_url = 'https://static.scientificamerican.com/sciam/assets/Image/newsletter/salogo.png'
extra_css = '''
.image-captioned{font-size:small;}
.feature-article__byline-authors{font-size:small;}
.article-header__inner__category{font-size:small; color:gray;}
.t_caption{font-size:small; text-align:center;}
.author-bio{font-size:small;}
.opinion-article__byline-authors{font-size:small;}
.article-author{font-size:small;}
[role="presentation"]{font-size:small;}
'''
needs_subscription = 'optional' needs_subscription = 'optional'
@ -31,7 +43,7 @@ class ScientificAmerican(BasicNewsRecipe):
' feature-article--header-title opinion-article__header-title author-bio'), ' feature-article--header-title opinion-article__header-title author-bio'),
] ]
remove_tags = [ remove_tags = [
classes('aside-banner moreToExplore article-footer flex-column--25 article-author__suggested'), classes('aside-banner moreToExplore article-footer flex-column--25 article-author__suggested medium-up-hide'),
dict(id=['seeAlsoLinks']), dict(id=['seeAlsoLinks']),
] ]