mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
87f4c08c16
@ -65,8 +65,8 @@ class MitTechnologyReview(BasicNewsRecipe):
|
|||||||
def get_cover_url(self):
|
def get_cover_url(self):
|
||||||
soup = self.index_to_soup('https://www.technologyreview.com/')
|
soup = self.index_to_soup('https://www.technologyreview.com/')
|
||||||
if script := soup.find('script', id='preload'):
|
if script := soup.find('script', id='preload'):
|
||||||
link = re.findall('https\S+?front_cover-web.png', self.tag_to_string(script))
|
link = re.findall('https\S+?front_cover\S+?.png', self.tag_to_string(script))
|
||||||
return link[0] + '?fit=572,786'
|
return link[-1] + '?fit=572,786'
|
||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
soup = self.index_to_soup(self.INDEX)
|
soup = self.index_to_soup(self.INDEX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user