From 962a846506b855b3cf7942ed6b688bb72a62952d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 1 Oct 2014 21:09:32 +0530 Subject: [PATCH] Include the subscribe message in WSJ for people whose accounts have expired --- recipes/wsj.recipe | 1 + recipes/wsj_free.recipe | 2 ++ 2 files changed, 3 insertions(+) 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):