diff --git a/recipes/atlantic.recipe b/recipes/atlantic.recipe index 4848f69281..54449b2412 100644 --- a/recipes/atlantic.recipe +++ b/recipes/atlantic.recipe @@ -13,12 +13,12 @@ class TheAtlantic(BasicNewsRecipe): title = 'The Atlantic' __author__ = 'Kovid Goyal' description = 'Current affairs and politics focussed on the US' - INDEX = 'http://www.theatlantic.com/magazine/toc/0/' + INDEX = 'http://www.theatlantic.com/magazine/' language = 'en' encoding = 'utf-8' keep_only_tags = [ - {'attrs':{'class':['article-header', 'article-body', 'article-magazine']}}, + {'attrs':{'class':['article-header', 'article-body', 'article-magazine', 'metadata', 'article-cover-content']}}, ] remove_tags = [ {'name': ['meta', 'link', 'noscript']}, @@ -27,6 +27,7 @@ class TheAtlantic(BasicNewsRecipe): {'src':lambda x:x and 'spotxchange.com' in x}, ] no_stylesheets = True + remove_attributes = ['style'] preprocess_regexps = [ (re.compile(r'', re.DOTALL), lambda m: ''), (re.compile(r'^.*