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 03-24-2022, 02:40 PM   #1
compa
Junior Member
compa began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2020
Device: Kindle Oasis 2016 (1.st Gen, 6”)
NYT Spanish New York Times Español El Times Recipe

Hi everyone,
Any idea how to adapt Kovid Goyal's NYT recipe (https://github.com/kovidgoyal/calibr...nytimes.recipe) to fetch https://www.nytimes.com/es/ for which the NYT unfortunately doesn't offer neither an RSS feed nor NYT section, in other words, simply adding
Code:
[('Spanish', 'es')]
to Kovid Goyal's NYT recipe's oject
Code:
web_sections
, namely
Code:
 web_sections = [('Spanish', 'es')]
obviously doesn't fetch the news from https://www.nytimes.com/es/ because line 297 of Kovid Goyal's NYT recipe reads
Code:
 url = 'https://www.nytimes.com/section/' + slug
hence, expects either a NYT RSS feed or NYT section, whereas the news in spanish from the NYT are not located as
Code:
https://www.nytimes.com/section/es
but as
Code:
https://www.nytimes.com/es
Btw, NYT does offer to deliver their news in spanish if users suscribe to "El Times" by entering an email. The new task would be to convert NYt's spanish news delivered by email with calibre. Would that be easier?

Thanks in advance for your feedback.
compa is offline   Reply With Quote
Reply

Tags
el times, español, new york times, nyt, spanish


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New York Times recipe update nickredding Recipes 7 01-12-2014 12:27 AM
New York Times Recipe dieterpops Recipes 1 01-20-2013 12:26 PM
Which New York Times recipe? jdomingos76 Recipes 1 03-25-2011 08:40 PM
Help - New York Times Recipe brutalist Recipes 6 03-20-2011 10:17 PM
New York Times recipe madrone26 Calibre 4 04-02-2009 01:13 PM


All times are GMT -4. The time now is 02:05 AM.


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