From 6420d449baab7ed0743f271e03f13deca7674f44 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 8 Mar 2023 20:55:00 +0530 Subject: [PATCH] Update The Saturday Paper --- recipes/the_saturday_paper.recipe | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/the_saturday_paper.recipe b/recipes/the_saturday_paper.recipe index 4558a4b52e..8fa9b80d3e 100644 --- a/recipes/the_saturday_paper.recipe +++ b/recipes/the_saturday_paper.recipe @@ -31,6 +31,11 @@ class SaturdayPaper(BasicNewsRecipe): ' article-page__sidebar article-page__social__icons share-wrapper article-footer-container') ] + def get_cover_url(self): + soup = self.index_to_soup('https://www.thesaturdaypaper.com.au/editions/') + div = soup.find('div', attrs={'class':'article__image'}) + return div.img['src'] + def parse_index(self): feeds = [ ('News', 'https://www.thesaturdaypaper.com.au/news'),