Remove hidden elements for subscribers

This commit is contained in:
a10kiloham 2018-07-18 11:52:18 +01:00 committed by GitHub
parent d2eef7db45
commit b9c182a3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,7 @@ class TimesOnline(BasicNewsRecipe):
return cover
remove_tags = [{
'attrs': {'class': lambda x: x and 'is-hidden' in x},
'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']}, {
'attrs': {
'class': [