|
|
#1 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
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:
Last edited by unkn0wn; 03-18-2022 at 09:25 AM. |
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,627
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
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()
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
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| frontline magazine recipe not working | dhruv_nagraj | Recipes | 2 | 04-07-2014 06:49 PM |
| Frontline Magazine India | Yash912 | Recipes | 0 | 01-06-2014 05:07 AM |
| Frontline Recipe is no longer working :( | ankurwidguitar | Recipes | 0 | 06-18-2013 03:14 AM |