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 07-12-2024, 01:10 AM   #1
nano5
Zealot
nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.
 
Posts: 122
Karma: 2136220
Join Date: May 2019
Device: Kindle
BBW past issue

with current recipe of bloomberg business week, is it possible to fetch the previous issue with url link, e.g. https://www.bloomberg.com/magazine/businessweek/24_09?

thanks
nano5 is offline   Reply With Quote
Old 07-12-2024, 03:12 AM   #2
nano5
Zealot
nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.nano5 ought to be getting tired of karma fortunes by now.
 
Posts: 122
Karma: 2136220
Join Date: May 2019
Device: Kindle
Seems to work with following twist

Quote:
# soup = self.index_to_soup('https://www.bloomberg.com')
# bw = 'soup.find('a', href=lambda x: x and x.startswith('/magazine/businessweek'))'
edition = 'https://www.bloomberg.com/magazine/businessweek/24_09'
self.log('Downloading ', edition)
soup = self.index_to_soup(edition)
self.cover_url = soup.find('img')['src'].replace('25x19', '600x800')
if timefmt := soup.find(**prefixed_classes('styles_TableOfConten tsTitle__')):
self.timefmt = ' [' + (self.tag_to_string(timefmt).replace(' Issue', '')).strip() + ']'
nano5 is offline   Reply With Quote
Advert
Old 07-12-2024, 03:13 AM   #3
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 561
Karma: 82944
Join Date: May 2021
Device: kindle
you can change line 109. Cover is not possible so remove the 4 lines before it.

@kovidgoyal can we add a dialog here for past editions? Option to enter date or edition number and some description. I can update recipes to use it.
unkn0wn is offline   Reply With Quote
Old 07-12-2024, 03:17 AM   #4
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: 44,648
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by unkn0wn View Post

@kovidgoyal can we add a dialog here for past editions? Option to enter date or edition number and some description. I can update recipes to use it.
See https://github.com/kovidgoyal/calibre/pull/2297
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MIT past issue cover nano5 Recipes 2 07-06-2024 09:10 AM
Kindle 4 Cant reach certain buttons issue and opening keyboard issue Thefirebeast KOReader 6 06-26-2021 01:46 AM
issue converting from azw3 to mobi (ccs and font issue) fatkinglet Conversion 3 10-15-2020 11:13 PM
Liam's Bride: A BBW Bear Shifter Romance .99 EmmaAlisyn Self-Promotions by Authors and Publishers 0 10-24-2015 07:40 PM
Nook Simple Touch Glowlight - technological issue or quality-control issue? Dr. Drib Barnes & Noble NOOK 1 12-04-2012 02:32 PM


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


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