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 10-27-2023, 11:25 PM   #1
reasonablehabit
Junior Member
reasonablehabit began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2023
Device: Kindle Oasis
Substack recipe: Download older posts?

Hi there,
I've set up Calibre with the Substack recipe and it works great, including my paid subscriptions.

Now the challenge I have is that I want to also download and read older posts from specific Substacks but the RSS feed only has the last ~25 posts or so.
Is there a way to also download older posts?
I'd be fine copying/pasting all the URLs somewhere if that has to be done but how would I have to adjust the recipe to accept URLs pointing to individual articles rather than an RSS feed?
Thanks for any pointers!

RH
reasonablehabit is offline   Reply With Quote
Old 10-27-2023, 11:36 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
You implement parse_index in your recipe see https://manual.calibre-ebook.com/news.html
kovidgoyal is offline   Reply With Quote
Advert
Old 12-08-2023, 09:00 AM   #3
dunderwerk
Junior Member
dunderwerk began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle
Hey reasonablehabit,

Could you please share your recipe for reading Substack archives via Calibre?
I have tried, but not being a programmer, I can't get it to work.

It would be very helpful!
dunderwerk is offline   Reply With Quote
Old 12-08-2023, 09:03 AM   #4
dunderwerk
Junior Member
dunderwerk began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle
Namaskar Kovidgoyal,

Thank you for your answer to reasonablehabit's question!

Not being a programmer myself (and many like me), could you please show how to implement the code into this recipe?
dunderwerk is offline   Reply With Quote
Old 10-13-2024, 10:06 PM   #5
ender7
Junior Member
ender7 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra 2
Quote:
Originally Posted by dunderwerk View Post
Namaskar Kovidgoyal,

Thank you for your answer to reasonablehabit's question!

Not being a programmer myself (and many like me), could you please show how to implement the code into this recipe?
Google led me to this thread. In my case I just needed something quick to run once to get all the posts that were years old. I used ChatGPT to parse the html for the page containing links to all the posts. Used it to convert the html to a list of dictionaries. Created a parse_html function like so. This would be for one feed containing 2 posts.

PHP Code:
def parse_index(self):
        
feeds = [
            {
"title""UI Part 1: The Interaction Medium""url""https://www.example.com/first-post"},
            {
"title""UI Part 2: Every Single Frame""url""https://www.example.com/second-post"}
        ]
        return [(
'articles'feeds)] 
Add that to your existing recipe. If you need more details they are in the link provided by kovid. Specifically the recipe for the Atlantic news site.
ender7 is offline   Reply With Quote
Advert
Reply

Tags
substack


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to download older firmware? eReader fan Onyx Boox 26 07-09-2025 01:51 PM
add login information to substack custom recipe tonedeaf Recipes 1 07-12-2024 08:57 PM
Download older version of Calibre fbrzvnrnd Calibre 10 04-30-2024 06:17 PM
Request: Substack recipe that excludes paid posts daneel_olivaw Recipes 3 09-11-2023 08:12 AM


All times are GMT -4. The time now is 05:54 AM.


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