View Single Post
Old 08-29-2024, 08:44 AM   #3
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 55
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