02-19-2018, 07:34 PM | #31 |
creator of calibre
Posts: 43,992
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@davidnye: The username and password were not used int he old recipe either. The NYT uses a captcha at login even with valid usernames and passwords.
@bobbysteel: Because I have no interest in implementing/maintaining it, and it creates extremely large downloads. |
02-21-2018, 05:38 AM | #32 | ||
Enthusiast
Posts: 31
Karma: 32
Join Date: Jan 2012
Device: Kindle Paperwhite
|
I saw you caught the class "supported-by" that added some cruft to articles. Thanks! There's just one more class at the moment that I've found, "accessibility-ad-header visually-hidden", that also adds cruft to each article (typically the word "Advertisement" to each article, around the fifth paragraph). I used this line in my own recipe, which does the job:
Quote:
Quote:
|
||
Advert | |
|
02-21-2018, 06:31 AM | #33 |
creator of calibre
Posts: 43,992
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You are probably indenting it incorrectly. The method needs to be indented at four spaces to be considered a part of the class. But probably easier to just add
remove_attributes = ['href'] |
02-22-2018, 05:48 AM | #34 |
Enthusiast
Posts: 31
Karma: 32
Join Date: Jan 2012
Device: Kindle Paperwhite
|
Thank you -- that's perfect.
|
09-09-2018, 07:04 PM | #35 |
Enthusiast
Posts: 45
Karma: 220
Join Date: Jul 2010
Device: none
|
Setting is_web_edition=False in The New York Times recipe
I run a headless linux server that downloads my New York Times so I can read it on my Kindle. Running /usr/bin/xvfb-run /opt/calibre/ebook-convert "The New York Times.recipe" with options brings it in.
I would prefer to get "Today's Paper" rather than the web edition. Yet, when I add "--is_web_edition=False" to my command, I get en ebook-convert error telling me there's no such option. Years ago, when I installed Calibre at the command line, it would include a recipes directory. But now, it appears that it always downloads the current version of the recipe. Usually, this is great. However, it also means I can't just enter the recipe file and set "is_web_edition" to False. Is there a way I can pass this value from the command line? If not, how can I download the current version of the recipe and set it up such that it works from the command line? Or is there a different recipe for getting "Today's Paper?" Thanks in advance. |
Advert | |
|
09-09-2018, 11:09 PM | #36 |
creator of calibre
Posts: 43,992
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1) You dont need xvfb-run
2) calibre still includes a recipe directory (it's zipped up as builtin_recipes.zip) and you can specify recipe files directly by path to the recipe file instead of using a title, in which case no downloading of recipes happens |
10-11-2018, 10:29 PM | #37 |
Enthusiast
Posts: 45
Karma: 220
Join Date: Jul 2010
Device: none
|
Thank you!
I think I have it working as desired.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New York Times Technology Beat is broken | NSILMike | Recipes | 1 | 04-16-2017 12:55 AM |
New York Times Book Review broken again. | wingmongyee | Recipes | 9 | 03-24-2016 07:20 PM |
New York Times Book Review broken | wingmongyee | Recipes | 3 | 01-02-2016 12:32 AM |
New York Times Recipe | dieterpops | Recipes | 1 | 01-20-2013 12:26 PM |
New York Times recipe broken? | gianfri | Calibre | 1 | 03-20-2010 09:52 AM |