View Single Post
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