diff --git a/recipes/nymag.recipe b/recipes/nymag.recipe index d9b9b73008..2bc8166ddb 100644 --- a/recipes/nymag.recipe +++ b/recipes/nymag.recipe @@ -52,7 +52,9 @@ class NewYorkMagazine(BasicNewsRecipe): self.log(section) ul = div.findNextSibling('ul') for li in ul.findAll('li'): - a = li.find(**classes('article-link')) + a = li.find(href=True, **classes('article-link')) + if a is None: + continue url = a['href'] h3 = li.find('h3') title = self.tag_to_string(h3) diff --git a/recipes/wash_post.recipe b/recipes/wash_post.recipe index 999e916dae..e2ac4be2c4 100644 --- a/recipes/wash_post.recipe +++ b/recipes/wash_post.recipe @@ -35,7 +35,7 @@ class TheWashingtonPost(BasicNewsRecipe): classes('byline article-body'), ] remove_tags = [ - dict(name=['meta', 'link']), + dict(name=['meta', 'link', 'svg']), classes('inline-video author-tooltip author-image powa-wrapper'), dict(attrs={'data-qa': ['article-body-ad', 'subscribe-promo', 'interstitial-link-wrapper']}), ]