mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Outlook Magazine
This commit is contained in:
parent
2f3b6223b2
commit
72ea1fe57b
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user