mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove comments, etc. from Newsweek download
This commit is contained in:
parent
757d9a533f
commit
b3271a0ded
@ -19,9 +19,16 @@ class Newsweek(BasicNewsRecipe):
|
|||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name=['script', 'noscript']),
|
dict(name=['script', 'noscript']),
|
||||||
dict(name='div', attrs={'class':['ad', 'SocialLinks', 'SocialLinksDiv', 'channel', 'bot', 'nav', 'top', 'EmailArticleBlock']}),
|
dict(name='div', attrs={'class':['ad', 'SocialLinks', 'SocialLinksDiv',
|
||||||
|
'channel', 'bot', 'nav', 'top',
|
||||||
|
'EmailArticleBlock',
|
||||||
|
'comments-and-social-links-wrapper',
|
||||||
|
'inline-social-links-wrapper',
|
||||||
|
'inline-social-links',
|
||||||
|
]}),
|
||||||
dict(name='div', attrs={'class':re.compile('box')}),
|
dict(name='div', attrs={'class':re.compile('box')}),
|
||||||
dict(id=['ToolBox', 'EmailMain', 'EmailArticle', ])
|
dict(id=['ToolBox', 'EmailMain', 'EmailArticle', 'comment-box',
|
||||||
|
'nw-comments'])
|
||||||
]
|
]
|
||||||
|
|
||||||
recursions = 1
|
recursions = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user