This commit is contained in:
Kovid Goyal 2018-07-18 17:19:09 +05:30
commit b2b353a680
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -87,12 +87,9 @@ class TimesOnline(BasicNewsRecipe):
return br
remove_tags = [
{'attrs': {'class': lambda x: x and 'is-hidden' in x}},
{'attrs': {'class': lambda x: x and 'Toolbar' in x}},
{'attrs': {'class': lambda x: x and 'Tooltip' in x}},
{'attrs': {'class': lambda x: x and 'Topics' in x}},
classes('is-hidden Toolbar Tooltip Topics Comments u-hide RelatedLinks ArticlePager Media-caption'),
{'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']},
{'attrs': {'class': ['u-hide', 'RelatedLinks', 'Comments Article-container','ArticlePager','Media-caption']}}]
]
remove_attributes = ['lang']
keep_only_tags = [{