Update The Saturday Paper

This commit is contained in:
Kovid Goyal 2023-03-08 20:55:00 +05:30
parent 4a1dfafb2a
commit 6420d449ba
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'),