diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 8373ac6b0d..ceeb4fd08f 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -55,6 +55,10 @@ class WSJ(BasicNewsRecipe): .sub, em, i { color: #202020; } ''' + def get_cover_url(self): + soup = self.index_to_soup('https://www.frontpages.com/the-wall-street-journal/') + return 'https://www.frontpages.com' + soup.find('img', attrs={'id':'giornale-img'})['src'] + keep_only_tags = [ dict(name=['h1', 'h2']), dict(attrs={'aria-describedby':'big-top-caption'}), diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index 3e5770ba83..6b5a264c50 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -55,6 +55,10 @@ class WSJ(BasicNewsRecipe): .sub, em, i { color: #202020; } ''' + def get_cover_url(self): + soup = self.index_to_soup('https://www.frontpages.com/the-wall-street-journal/') + return 'https://www.frontpages.com' + soup.find('img', attrs={'id':'giornale-img'})['src'] + keep_only_tags = [ dict(name=['h1', 'h2']), dict(attrs={'aria-describedby':'big-top-caption'}),