08-16-2024, 10: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, 12:14 PM | #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, 09: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, 12:11 PM | #4 |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
We need help from (again) unk0wn.
|
09-18-2024, 04:24 AM | #5 |
Fanatic
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
|
|
09-18-2024, 12:25 PM | #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 11:15 PM |
RSS feed | messiaen | Recipes | 1 | 02-03-2016 10:55 PM |
Recipes with only one feed? | Dereks | Recipes | 0 | 04-02-2011 10:28 AM |
RSS Feed | timezone | Feedback | 8 | 01-02-2010 07:55 PM |
RSS Feed Prob... | AKninja04 | Calibre | 6 | 08-25-2008 08:51 PM |