From a2823eceed6dca0f55494a5a54292cd5c53d4d99 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 May 2022 11:57:46 +0530 Subject: [PATCH] Update Outlook India --- recipes/outlook_india.recipe | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/outlook_india.recipe b/recipes/outlook_india.recipe index 79b3acee8f..b2f94f4a4b 100644 --- a/recipes/outlook_india.recipe +++ b/recipes/outlook_india.recipe @@ -14,13 +14,13 @@ class outlook(BasicNewsRecipe): ignore_duplicate_articles = {'url'} def parse_index(self): - soup = self.index_to_soup('https://www.outlookindia.com/magazine/archive') - issue = soup.find(**classes('issue_listing')) - a = issue.find('a', href=lambda x: x and x.startswith('/magazine/issue/')) + soup = self.index_to_soup('https://www.outlookindia.com/') + a = soup.find('a', href=lambda x: x and x.startswith('/magazine/issue/')) url = a['href'] self.log('Downloading issue:', url) - self.cover_url = a.find('img', attrs={'src': True})['src'] soup = self.index_to_soup('https://www.outlookindia.com' + url) + cover = soup.find(**classes('listingPage_lead_story')) + self.cover_url = cover.find('img', attrs={'src': True})['src'] ans = [] for h3 in soup.findAll(['h3', 'h4'],