diff --git a/recipes/economist.recipe b/recipes/economist.recipe index b5e2a1fd9b..9c0b08c744 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -41,10 +41,11 @@ class Economist(BasicNewsRecipe): remove_tags = [ dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(attrs={'class':['dblClkTrk', 'ec-article-info', - 'share_inline_header', 'related-items']}), + 'share_inline_header', 'related-items', + 'main-content-container']}), {'class': lambda x: x and 'share-links-header' in x}, ] - keep_only_tags = [dict(id='ec-article-body')] + keep_only_tags = [dict(name='article')] no_stylesheets = True preprocess_regexps = [(re.compile('.*', re.DOTALL), lambda x:'')] diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index b5e2a1fd9b..9c0b08c744 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -41,10 +41,11 @@ class Economist(BasicNewsRecipe): remove_tags = [ dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(attrs={'class':['dblClkTrk', 'ec-article-info', - 'share_inline_header', 'related-items']}), + 'share_inline_header', 'related-items', + 'main-content-container']}), {'class': lambda x: x and 'share-links-header' in x}, ] - keep_only_tags = [dict(id='ec-article-body')] + keep_only_tags = [dict(name='article')] no_stylesheets = True preprocess_regexps = [(re.compile('.*', re.DOTALL), lambda x:'')]