Update Outlook Magazine

This commit is contained in:
Kovid Goyal 2022-09-13 19:22:22 +05:30
parent 2f3b6223b2
commit 72ea1fe57b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -27,8 +27,9 @@ class outlook(BasicNewsRecipe):
] ]
def parse_index(self): def parse_index(self):
soup = self.index_to_soup('https://www.outlookindia.com/') soup = self.index_to_soup('https://www.outlookindia.com/magazine')
a = soup.find('a', href=lambda x: x and x.startswith('/magazine/issue/')) div = soup.find('div', attrs={'class':'wrapper'})
a = div.find('a', href=lambda x: x and x.startswith('/magazine/issue/'))
url = a['href'] url = a['href']
self.log('Downloading issue:', url) self.log('Downloading issue:', url)
soup = self.index_to_soup('https://www.outlookindia.com' + url) soup = self.index_to_soup('https://www.outlookindia.com' + url)