https://github.com/kovidgoyal/calibr...a_today.recipe
India today .. better cover url
Code:
def get_cover_url(self):
soup = self.index_to_soup('https://www.readwhere.com/magazine/the-india-today-group/India-Today/1154')
for citem in soup.findAll('meta', content=lambda s: s and s.endswith('/magazine/300/new')):
return citem['content'].replace('300', '600')
https://github.com/kovidgoyal/calibr...agazine.recipe OPEN magazine
cover url isn't updated in the old link
Code:
def get_cover_url(self):
soup = self.index_to_soup('https://openthemagazine.com/')
tag = soup.find(attrs={'class': 'magazine-item mr-1'})
if tag:
self.cover_url = tag.find('img')['src']
return getattr(self, 'cover_url', self.cover_url)
and Hindu BusinessLine print edition