mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Update WSJ
This commit is contained in:
parent
c093659f84
commit
6ed414c1ca
@ -66,13 +66,15 @@ class WSJ(BasicNewsRecipe):
|
||||
'''
|
||||
|
||||
keep_only_tags = [
|
||||
classes('wsj-article-headline-wrap articleLead bylineWrap bigTop-hero'),
|
||||
classes('wsj-article-headline-wrap articleLead bylineWrap bigTop-hero article-container'),
|
||||
dict(name='section', attrs={'subscriptions-section':'content'})
|
||||
]
|
||||
|
||||
remove_tags = [
|
||||
classes('wsj-ad newsletter-inset media-object-video media-object-podcast podcast--iframe dynamic-inset-overflow-button'),
|
||||
dict(name='amp-iframe') # interactive graphics
|
||||
dict(role=["toolbar", "complementary"]),
|
||||
dict(attrs={"aria-label": ["Sponsored Offers", "What to Read Next"]}),
|
||||
dict(name='amp-iframe'), # interactive graphics
|
||||
]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
|
@ -66,13 +66,15 @@ class WSJ(BasicNewsRecipe):
|
||||
'''
|
||||
|
||||
keep_only_tags = [
|
||||
classes('wsj-article-headline-wrap articleLead bylineWrap bigTop-hero'),
|
||||
classes('wsj-article-headline-wrap articleLead bylineWrap bigTop-hero article-container'),
|
||||
dict(name='section', attrs={'subscriptions-section':'content'})
|
||||
]
|
||||
|
||||
remove_tags = [
|
||||
classes('wsj-ad newsletter-inset media-object-video media-object-podcast podcast--iframe dynamic-inset-overflow-button'),
|
||||
dict(name='amp-iframe') # interactive graphics
|
||||
dict(role=["toolbar", "complementary"]),
|
||||
dict(attrs={"aria-label": ["Sponsored Offers", "What to Read Next"]}),
|
||||
dict(name='amp-iframe'), # interactive graphics
|
||||
]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
|
Loading…
x
Reference in New Issue
Block a user