From 4f92e975bf91848b6fdba95c86373f144f26d874 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 17 Feb 2022 10:20:46 +0530 Subject: [PATCH] Update Reuters --- recipes/reuters.recipe | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/reuters.recipe b/recipes/reuters.recipe index 602cb4566c..6430a8c331 100644 --- a/recipes/reuters.recipe +++ b/recipes/reuters.recipe @@ -59,16 +59,20 @@ class Reuters(BasicNewsRecipe): language = 'en' keep_only_tags = [ - prefixed_classes('ArticleHeader__heading___ ArticleHeader__author___ ArticleBody__container___ ArticlePage-article-header ArticlePage-article-body'), + prefixed_classes('article-header__heading___ article-header__author___ article-body__content___'), ] remove_tags = [ prefixed_classes( - 'ArticleBody-read-time-and-social Slideshow-expand-button- TwoColumnsLayout-footer- RegistrationPrompt__container___' + 'context-widget__tabs___' + ' ArticleBody-read-time-and-social Slideshow-expand-button- TwoColumnsLayout-footer- RegistrationPrompt__container___' ' SocialEmbed__inner___' ), dict(name=['button', 'link']), ] remove_attributes = ['style'] + extra_css = ''' + img { max-width: 100%; } + ''' def preprocess_html(self, soup, *a): for noscript in soup.findAll('noscript'):