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 04-24-2024, 01:54 AM   #1
Lewi
Junior Member
Lewi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2024
Device: KPW2
Is it possible to fetch older issues of news magazines?

I'm wanting to download issues of The Economist older than the latest issue, in the 'fetch news' section of Calibre. Is this possible without scripting? If it isn't, could someone point me in the direction of good resources for opening up Calibre's functionality with scripting? Thank you.
Lewi is offline   Reply With Quote
Old 04-24-2024, 03:23 AM   #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: 44,650
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Modify the recipe to download whatever you like, https://manual.calibre-ebook.com/news.html
kovidgoyal is offline   Reply With Quote
Advert
Old 04-24-2024, 07:55 PM   #3
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 53
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Just edit the recipe on line 15

# For past editions, set date to, for example, '2020-11-28'
edition_date = None

For example, I used this date and it pulled up this issue. Use Saturday dates.
edition_date = '2024-04-13'
hongho71 is offline   Reply With Quote
Old 04-25-2024, 01:34 AM   #4
Lewi
Junior Member
Lewi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2024
Device: KPW2
Quote:
Originally Posted by hongho71 View Post
Just edit the recipe on line 15

# For past editions, set date to, for example, '2020-11-28'
edition_date = None

For example, I used this date and it pulled up this issue. Use Saturday dates.
edition_date = '2024-04-13'
Thank you! I've downloaded an earlier version of The Economist based on your suggestion. But I looked at other recipes and I realized that not every recipe has the ability to change the publication date directly.
I found this api based on the API documentation for recipes shared by the creator of calibre, but unfortunately I don't know anything about programming and I can't read this stuff at all. How can I change the publication date in each recipe? Thanks again!
Lewi is offline   Reply With Quote
Old 04-25-2024, 01:39 AM   #5
Lewi
Junior Member
Lewi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2024
Device: KPW2
Thank you! I've downloaded an earlier version of The Economist based on your suggestion. But I looked at other recipes and I realized that not every recipe has the ability to change the publication date directly.
I found this api based on the API documentation for recipes shared by the creator of calibre, but unfortunately I don't know anything about programming and I can't read this stuff at all. How can I change the publication date in each recipe? Thanks again!
Lewi is offline   Reply With Quote
Advert
Old 04-25-2024, 01:55 AM   #6
Lewi
Junior Member
Lewi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2024
Device: KPW2
Apologies.I just got confused about the difference between publication date and edition date, and what I want to ask is actually how to change the edition date of each recipe?
Lewi is offline   Reply With Quote
Old 04-25-2024, 02:05 AM   #7
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 53
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
If you are talking about other recipes besides The Economist, then each website and recipes will be different on how you get past issues (if it is even possible) which I know nothing about.
hongho71 is offline   Reply With Quote
Old 05-11-2024, 04:05 PM   #8
Pistol@1204
Member
Pistol@1204 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2023
Location: Mumbai
Device: Kindle Oasis
Is it possible to get older issues of Barron's

Is it possible to get older issues of Barron's

The code uses class 'BarronsTheme--archive-box' which is exactly same for all issues. I was trying to get the "issue" variable in line 85 of code from the href element which has the date, but have no idea how to do that.

Experts, please help!
Pistol@1204 is offline   Reply With Quote
Old 05-12-2024, 12:57 AM   #9
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: 562
Karma: 82944
Join Date: May 2021
Device: kindle
use your link in archive = self.index_to_soup('') and remove the 4 lines below it. cover date desc are not possible.

and sometimes barrons wont respond to other links but you can try.
unkn0wn is offline   Reply With Quote
Old 05-14-2024, 06:31 AM   #10
Pistol@1204
Member
Pistol@1204 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2023
Location: Mumbai
Device: Kindle Oasis
Understood, thanks. I tried putting in the link 'https://www.barrons.com/magazine/20240415' but it didn't work
Pistol@1204 is offline   Reply With Quote
Old 07-25-2024, 03:39 AM   #11
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
Barron past issue's cover

In the python recipe, is it possible to get past issue's cover link using regex?

e.g.
Code:
.*20231218.*(https:\/\/images.barrons.com\/im-\d{8})
will match the cover image link of issue "20231218" at https://www.barrons.com/magazine?archives=2023
nano5 is offline   Reply With Quote
Old 07-25-2024, 11:27 AM   #12
jhb-812
Member
jhb-812 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jul 2024
Device: kindle paperwhite 10e
Quote:
Originally Posted by nano5 View Post
In the python recipe, is it possible to get past issue's cover link using regex?

e.g.
Code:
.*20231218.*(https:\/\/images.barrons.com\/im-\d{8})
will match the cover image link of issue "20231218" at https://www.barrons.com/magazine?archives=2023
Note that covers can also be manually added by saving the image to your computer and using Edit metadata/Change cover/Browse for each publication file. That may be more straightforward.
jhb-812 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set [fetch news]-[delete downloaded nenws older than * days] with command line Aoxd3p4 Library Management 2 12-02-2019 04:04 AM
Failing to fetch news from hurriyet daily news help MrK03 Recipes 2 06-12-2019 02:40 AM
Automatic news fetch: different news sources to different Kindles? kcp Calibre 4 01-24-2015 03:43 PM
How to send news to News and Magazines section (Kobo Glo) gianfri Calibre 1 12-25-2012 10:21 PM
Fetch News doesn't (fetch news, that is) DJ Vollkasko Recipes 9 06-30-2012 04:11 AM


All times are GMT -4. The time now is 05:20 PM.


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