|
|
#1 |
|
Member
![]() Posts: 11
Karma: 64
Join Date: Jan 2012
Device: Cybook Orizon
|
Courrier international recipe
I've updated the courrier international recipe to better handle current version of their web site.
I've uploaded it there : https://gist.githubusercontent.com/v...ational.recipe It download all feed from courrier, enable those who pay courrier international to download articles behind the paywall, and update the cleaning to current web site. I was wondering: in the final stage, ebook-convert tell me that some referenced file are not found. They are link to older articles still available on the web site, but that my recipe did not download because I don't want to dowload the 5+ years of old articles. Is there a way to convert them to links to their web site? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If the recipe didn't download them, the links should still point to the original articles on the web.
|
|
|
|
|
|
#3 |
|
Member
![]() Posts: 11
Karma: 64
Join Date: Jan 2012
Device: Cybook Orizon
|
It doesn't look like it: in the generated ebook, I've link like file:///tmp/calibre_1.25.0_tmp_CfTaso/80m1jA_ebook_iter//article/2013/12/31/a-hambourg-le-squat-flora-et-sa-drole-de-faune that will definitively won't work. I had wrote a preprocess_html that will rewrote most of the link that will fail (to thing that are not article) but the problem stay.
I've generated an ebook without my preprocess_html method, and most internal link fail. I can put the generated epub somewhere, and the content of the directory generated by the -d option, if it is of interest. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That will happen if the website uses relative links, in which case you should implement preprocess_html and make the links absolute yourself.
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 11
Karma: 64
Join Date: Jan 2012
Device: Cybook Orizon
|
Okay. I've updated the recipe: https://gist.githubusercontent.com/v...ational.recipe
|
|
|
|
![]() |
| Tags |
| courrier international, french, recipe |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Courrier International | josepinto | Recipes | 1 | 03-27-2015 11:18 AM |
| International New York Times Recipe | sansay | Recipes | 0 | 02-24-2014 02:05 AM |
| Recipe Request: International Consortium of Investigative Journalists, icij.org | mojumoka | Recipes | 1 | 04-08-2013 12:47 AM |
| Recipe for Courrier International Abonné | Mwandishi | Recipes | 0 | 11-17-2012 09:27 AM |
| Hardware des nouvelles fraîches du "courrier" de microsoft ! | zelda_pinwheel | Forum Français | 5 | 05-04-2010 08:22 AM |