From 72ea1fe57b67b0943fd261cca25121711f2d2aea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Sep 2022 19:22:22 +0530 Subject: [PATCH] Update Outlook Magazine --- recipes/outlook_india.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/outlook_india.recipe b/recipes/outlook_india.recipe index ef218a0be6..0693ba0dca 100644 --- a/recipes/outlook_india.recipe +++ b/recipes/outlook_india.recipe @@ -27,8 +27,9 @@ class outlook(BasicNewsRecipe): ] def parse_index(self): - soup = self.index_to_soup('https://www.outlookindia.com/') - a = soup.find('a', href=lambda x: x and x.startswith('/magazine/issue/')) + soup = self.index_to_soup('https://www.outlookindia.com/magazine') + div = soup.find('div', attrs={'class':'wrapper'}) + a = div.find('a', href=lambda x: x and x.startswith('/magazine/issue/')) url = a['href'] self.log('Downloading issue:', url) soup = self.index_to_soup('https://www.outlookindia.com' + url)