View Single Post
Old 06-29-2022, 03:26 AM   #3
unkn0wn
Guru
unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.
 
Posts: 630
Karma: 85520
Join Date: May 2021
Device: kindle
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
Attached Files
File Type: recipe The Hindu BusinessLine Print Edition.recipe (3.1 KB, 91 views)
unkn0wn is offline   Reply With Quote