08-16-2024, 09:08 AM | #1 |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
NYT RSS feed-based recipes
Hello. Calibre already has recipes to fetch New York Times' webpage edition. Could anyone please help tweak them to make RSS-based recipes so that users can fetch official rss feeds like https://rss.nytimes.com/services/xml...siaPacific.xml
Thank you! |
08-18-2024, 11:14 AM | #2 |
Connoisseur
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
|
Looks like New York Times and Economist RSS feeds
https://www.economist.com/rss only allows download of the first paragraph without signing in. If an archive option is not available, I don't mind having a login option. That would be nice if someone can create a recipe for that. |
08-29-2024, 08:44 AM | #3 |
Connoisseur
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
|
For example, here is a basic recipe for NY Times Opinion columnists. Using this only downloads the first paragraph. Is there a code to add to reference archive.is for this particular rss feed? Doing this may help with all the other rss feeds as many rss feeds are going towards this 1 paragraph downloads.
#!/usr/bin/env python # vim:fileencoding=utf-8 from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1724934913(BasicNewsRecipe): title = 'New York Times Opinion' oldest_article = 60 max_articles_per_feed = 100 auto_cleanup = True feeds = [ ('David Brooks', 'https://www.nytimes.com/svc/collections/v1/publish/www.nytimes.com/column/david-brooks/rss.xml'), ('Thomas L Friedman', 'https://www.nytimes.com/svc/collections/v1/publish/www.nytimes.com/column/thomas-l-friedman/rss.xml')] |
08-29-2024, 11:11 AM | #4 |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
We need help from (again) unk0wn.
|
09-18-2024, 03:24 AM | #5 |
Fanatic
Posts: 541
Karma: 82944
Join Date: May 2021
Device: kindle
|
|
09-18-2024, 11:25 AM | #6 |
Connoisseur
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
|
I had a chance to try this recipe and it works great. With this recipe, I can change line 215 for the rss web page and line 151 for days for oldest articles.
Thank you again unkn0wn! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting no article from an RSS Feed | macpablus | Recipes | 3 | 12-01-2016 10:15 PM |
RSS feed | messiaen | Recipes | 1 | 02-03-2016 09:55 PM |
Recipes with only one feed? | Dereks | Recipes | 0 | 04-02-2011 09:28 AM |
RSS Feed | timezone | Feedback | 8 | 01-02-2010 06:55 PM |
RSS Feed Prob... | AKninja04 | Calibre | 6 | 08-25-2008 07:51 PM |