From b3271a0dede43f60c19014652850d4f6321ee11a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 Jan 2009 12:29:39 -0800 Subject: [PATCH] Remove comments, etc. from Newsweek download --- src/calibre/web/feeds/recipes/recipe_newsweek.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/calibre/web/feeds/recipes/recipe_newsweek.py b/src/calibre/web/feeds/recipes/recipe_newsweek.py index 9ad551c469..b4de7c5762 100644 --- a/src/calibre/web/feeds/recipes/recipe_newsweek.py +++ b/src/calibre/web/feeds/recipes/recipe_newsweek.py @@ -19,9 +19,16 @@ class Newsweek(BasicNewsRecipe): remove_tags = [ dict(name=['script', 'noscript']), - dict(name='div', attrs={'class':['ad', 'SocialLinks', 'SocialLinksDiv', 'channel', 'bot', 'nav', 'top', 'EmailArticleBlock']}), + dict(name='div', attrs={'class':['ad', 'SocialLinks', 'SocialLinksDiv', + 'channel', 'bot', 'nav', 'top', + 'EmailArticleBlock', + 'comments-and-social-links-wrapper', + 'inline-social-links-wrapper', + 'inline-social-links', + ]}), dict(name='div', attrs={'class':re.compile('box')}), - dict(id=['ToolBox', 'EmailMain', 'EmailArticle', ]) + dict(id=['ToolBox', 'EmailMain', 'EmailArticle', 'comment-box', + 'nw-comments']) ] recursions = 1