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 08-16-2024, 10:08 AM   #1
Steven630
Groupie
Steven630 began at the beginning.
 
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!
Steven630 is offline   Reply With Quote
Old 08-18-2024, 12:14 PM   #2
hongho71
Connoisseur
hongho71 began at the beginning.
 
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.
hongho71 is offline   Reply With Quote
Old 08-29-2024, 09:44 AM   #3
hongho71
Connoisseur
hongho71 began at the beginning.
 
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')]
hongho71 is offline   Reply With Quote
Old 08-29-2024, 12:11 PM   #4
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
We need help from (again) unk0wn.
Steven630 is offline   Reply With Quote
Old 09-18-2024, 04:24 AM   #5
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: 543
Karma: 82944
Join Date: May 2021
Device: kindle
https://github.com/kovidgoyal/calibr...ytfeeds.recipe
unkn0wn is offline   Reply With Quote
Old 09-18-2024, 12:25 PM   #6
hongho71
Connoisseur
hongho71 began at the beginning.
 
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!
hongho71 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:41 AM.


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