From 8c54867bbd8407447e1b33697fcefe569acc36bc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Sep 2019 09:27:03 +0530 Subject: [PATCH] Update Wired Magazine --- recipes/wired.recipe | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/recipes/wired.recipe b/recipes/wired.recipe index c4b884ce1a..1504fd6d99 100644 --- a/recipes/wired.recipe +++ b/recipes/wired.recipe @@ -40,14 +40,17 @@ class WiredDailyNews(BasicNewsRecipe): ul li{display: inline} """ + keep_only_tags = [ + classes('content-header lead-asset article__body'), + ] remove_tags = [ - classes('related-cne-video-component tags-component podcast_storyboard inset-left-component'), + classes( + 'related-cne-video-component tags-component callout--related-list iframe-embed podcast_storyboard' + ' inset-left-component ad consumer-marketing-component social-icons' + ), dict(name=['meta', 'link']), dict(id=['sharing', 'social', 'article-tags', 'sidebar']), ] - keep_only_tags = [ - dict(name='main', attrs={'class': lambda x: x and 'article-main-component__content' in x}), - ] def parse_wired_index_page(self, currenturl, seen): self.log('Parsing index page', currenturl)