Quote:
Originally Posted by robbw
I'm one of those people for whom this is rocket science. I'm interested in paring down the the recipes of the NYTimes ... The NYTimes recipe in particular, creates huge documents that hogs resources on my computer and K3. I don't need half of what the recipe contains.
Thanks in advance for helpful advice.
|
The NYTimes is typical of why his suggestion won't work without a huge effort to rewrite recipes and rewrite how the recipe system functions. There aren't any "feeds" in that recipe. That recipe scrapes a page with links to relevant articles to build its own "feeds". Simpler recipes just list the feeds and they're easy to modify. Recipes for sites that don't have feeds must build them from scratch.
However, recipe authors typically try to build some flexibility into their recipes. The NYT has this in it:
Code:
description = 'Daily news from the New York Times (subscription version)'
allSectionKeywords = ['The Front Page', 'International','National','Obituaries','Editorials',
'New York','Business Day','Science Times','Sports','Dining','Arts',
'Home','Styles','Sunday Business','Week In Review','Travel','Magazine',
'Book Review','Weddings','Real Estate','Automobiles',"T Men's Fashion",
"T Women's Fashion"]
# List of sections to exclude
# To add a section, copy the section name from the allSectionKeywords list above
# For example, to exclude 'Dining' and 'Weddings':
#excludeSectionKeywords = ['Dining','Weddings']
excludeSectionKeywords = []
# List of sections to include (test and debug only)
# By default, any sections in today's paper that are not listed in excludeSectionKeywords
# are downloaded. fetch_only specifies that only certain sections are to be downloaded.
# This should only be used for testing and debugging.
# For example, to download only 'The Front Page' section:
# fetch_only = set(['The Front Page'])
fetch_only = set([])
if fetch_only:
excludeSectionKeywords = list(set(allSectionKeywords) ^ fetch_only)
# one_picture_per_article specifies that calibre should only use the first image
# from an article (if one exists). If one_picture_per_article = True, the image
# will be moved to a location between the headline and the byline.
# If one_picture_per_article = False, all images from the article will be included
# and shown in their original location.
Read
here and
here for how to open up a builtin recipe and modify it. Briefly: you click the triangle on the right side of the Fetch News icon, select the button to modify a builtin recipe, change it, then save it as a custom recipe. The custom recipe is then available for you to schedule in the usual way.