mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update The Guardian
This commit is contained in:
parent
54909e3a59
commit
30ebdfe1f3
@ -38,11 +38,14 @@ class Guardian(BasicNewsRecipe):
|
|||||||
ignore_sections = []
|
ignore_sections = []
|
||||||
|
|
||||||
timefmt = ' [%a, %d %b %Y]'
|
timefmt = ' [%a, %d %b %Y]'
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='div', attrs={'id':["content","article_header","main-article-info",]}),
|
dict(name='div', attrs={'id':["content","article_header","main-article-info",]}),
|
||||||
|
dict(attrs={'class':lambda x: x and set(x.split()).intersection({'content__head', 'content__main'})}),
|
||||||
]
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'class':["video-content","videos-third-column"]}),
|
dict(name='div', attrs={'class':[
|
||||||
|
"video-content","videos-third-column", 'meta__extras', 'submeta-container submeta-container--break-at-leftcol ']}),
|
||||||
dict(name='div', attrs={'id':["article-toolbox","subscribe-feeds",]}),
|
dict(name='div', attrs={'id':["article-toolbox","subscribe-feeds",]}),
|
||||||
dict(name='div', attrs={'class':["guardian-tickets promo-component",]}),
|
dict(name='div', attrs={'class':["guardian-tickets promo-component",]}),
|
||||||
dict(name='ul', attrs={'class':["pagination"]}),
|
dict(name='ul', attrs={'class':["pagination"]}),
|
||||||
@ -57,7 +60,6 @@ class Guardian(BasicNewsRecipe):
|
|||||||
dict(name='img', attrs={'class':["contributor-pic-small"]}),
|
dict(name='img', attrs={'class':["contributor-pic-small"]}),
|
||||||
# embedded videos/captions
|
# embedded videos/captions
|
||||||
dict(name='span',attrs={'class' : ['inline embed embed-media']}),
|
dict(name='span',attrs={'class' : ['inline embed embed-media']}),
|
||||||
# dict(name='img'),
|
|
||||||
]
|
]
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user