Update times_online.recipe

This commit is contained in:
bobbysteel 2017-12-11 13:14:44 +00:00 committed by GitHub
parent a9451dd8b0
commit 1e57ff1657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,13 +89,10 @@ class TimesOnline(BasicNewsRecipe):
remove_tags = [
{'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}}, {
'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']}, {
'attrs': {
'class': [
'tools comments-parent', 'u-hide', 'RelatedLinks', 'Comments Article-container',
'ArticlePager', 'Media-caption']}},
}]
{'attrs': {'class': lambda x: x and 'Topics' in x}},
{'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']},
{'attrs': { 'class': ['u-hide', 'RelatedLinks', 'Comments Article-container','ArticlePager','Media-caption']}}]
remove_attributes = ['lang']
keep_only_tags = [{
'attrs': {