diff --git a/recipes/times_online.recipe b/recipes/times_online.recipe index 373770c956..9b20bf8c15 100644 --- a/recipes/times_online.recipe +++ b/recipes/times_online.recipe @@ -86,15 +86,13 @@ class TimesOnline(BasicNewsRecipe): br.open('https://login.thetimes.co.uk/', data) return br - remove_tags = [{ - 'name': ['object', 'link', 'iframe', 'base', 'meta', 'script']}, { - 'attrs': { - 'class': [ - 'tools comments-parent', 'u-hide', 'RelatedLinks', 'Tooltip', - 'Toolbar Toolbar--bottom', 'Comments Article-container', - 'ArticlePager', 'Media-caption']}}, { - 'attrs': { - 'class': lambda x: x and 'Toolbar' in x}}] + 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': ['u-hide', 'RelatedLinks', 'Comments Article-container','ArticlePager','Media-caption']}}] + remove_attributes = ['lang'] keep_only_tags = [{ 'attrs': {