Filter out scorecardresearch images from guardian downloads

This commit is contained in:
Kovid Goyal 2022-08-02 19:06:07 +05:30
parent 9df8c2e629
commit d39b5e52c6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -56,6 +56,7 @@ class Guardian(BasicNewsRecipe):
dict(attrs={'class': lambda x: x and 'modern-visible' in x.split()}), dict(attrs={'class': lambda x: x and 'modern-visible' in x.split()}),
classes('badge-slot reveal-caption__checkbox mobile-only element-rich-link'), classes('badge-slot reveal-caption__checkbox mobile-only element-rich-link'),
dict(name=['link', 'meta', 'style', 'svg', 'input', 'source', 'noscript', 'button']), dict(name=['link', 'meta', 'style', 'svg', 'input', 'source', 'noscript', 'button']),
dict(name='img', src=lambda x: x and 'https://sb.scorecardresearch.com/' in x),
] ]
remove_tags_after = [ remove_tags_after = [
classes('content__article-body js-bottom-marker article-body-commercial-selector'), classes('content__article-body js-bottom-marker article-body-commercial-selector'),