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, 09:08 AM   #1
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 166
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, 11:14 AM   #2
hongho71
Enthusiast
hongho71 began at the beginning.
 
Posts: 45
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
Advert
Old Today, 08:44 AM   #3
hongho71
Enthusiast
hongho71 began at the beginning.
 
Posts: 45
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 Today, 11:11 AM   #4
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 166
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
We need help from (again) unk0wn.
Steven630 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 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


All times are GMT -4. The time now is 03:34 PM.


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