diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 924ab4acbf..3003bb7eac 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -28,6 +28,7 @@ class WallStreetJournal(BasicNewsRecipe): dict(name='span', itemprop='author', rel='author'), dict(name='article', id=['article-contents', 'articleBody']), dict(name='div', id='article_story_body'), + dict(name='div', attrs={'class':'snippet-ad-login'}), ] remove_tags = [ dict(attrs={'class':['insetButton', 'insettipBox']}), diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index 0b1c0f183f..09c0a6f60a 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -26,6 +26,7 @@ class WallStreetJournal(BasicNewsRecipe): dict(name='span', itemprop='author', rel='author'), dict(name='article', id=['article-contents', 'articleBody']), dict(name='div', id='article_story_body'), + dict(name='div', attrs={'class':'snippet-ad-login'}), ] remove_tags = [ dict(attrs={'class':['insetButton', 'insettipBox']}), @@ -108,6 +109,7 @@ class WallStreetJournal(BasicNewsRecipe): desc = '' if feeds: feeds[0][1].append({'title':title, 'url':url, 'description':desc, 'date':''}) + feeds = [x for x in feeds if x[0] == 'Opinion'] return feeds def wsj_find_wn_articles(self, url):