Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2022, 08:16 AM   #1
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: 616
Karma: 85520
Join Date: May 2021
Device: kindle
Frontline recipe

https://frontline.thehindu.com/current-issue/

Its a fortnightly from The Hindu

Please add this
Quote:
ignore_duplicate_articles = {'url'}
Attached Files
File Type: recipe Frontline.recipe (2.4 KB, 158 views)

Last edited by unkn0wn; 03-18-2022 at 08:25 AM.
unkn0wn is offline   Reply With Quote
Old 03-18-2022, 10:53 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...76f8798c9d8960
kovidgoyal is online now   Reply With Quote
Advert
Old 07-27-2022, 10: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: 616
Karma: 85520
Join Date: May 2021
Device: kindle
tried to load this recently and it does't work anymore.. some small fixes.

cover method change
Code:
    def get_cover_url(self):
        soup = self.index_to_soup(
            'https://frontline.thehindu.com/current-issue/')
        tag = soup.find(attrs={'class': 'sptar-image'})
        if tag:
            self.cover_url = tag.find('img')['data-original']
        return super().get_cover_url()
add 'article-container' to keep tags classes

change preprocess images
Code:
    def preprocess_html(self, soup):
        for source in soup.findAll('source', srcset=True, attrs={'media':'(min-width: 1600px)'}):
            source.name = 'img'
            source['src'] = source['srcset']
        for img in soup.findAll('img', attrs={'data-original':True}):
            img['src'] = img['data-original']
        return soup
unkn0wn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
frontline magazine recipe not working dhruv_nagraj Recipes 2 04-07-2014 05:49 PM
Frontline Magazine India Yash912 Recipes 0 01-06-2014 04:07 AM
Frontline Recipe is no longer working :( ankurwidguitar Recipes 0 06-18-2013 02:14 AM


All times are GMT -4. The time now is 12:09 AM.


MobileRead.com is a privately owned, operated and funded community.