Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2014, 06:47 AM   #1
darkl
Junior Member
darkl is on a distinguished road
 
Posts: 8
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?
darkl is offline   Reply With Quote
Old 03-25-2014, 07:33 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,991
Karma: 5036765
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.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 03-25-2014, 08:41 AM   #3
darkl
Junior Member
darkl is on a distinguished road
 
Posts: 8
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.
darkl is offline   Reply With Quote
Old 03-25-2014, 08:42 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,991
Karma: 5036765
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.
kovidgoyal is offline   Reply With Quote
Old 03-25-2014, 09:07 AM   #5
darkl
Junior Member
darkl is on a distinguished road
 
Posts: 8
Karma: 64
Join Date: Jan 2012
Device: Cybook Orizon
Okay. I've updated the recipe: https://gist.githubusercontent.com/v...ational.recipe
darkl is offline   Reply With Quote
Reply

Tags
courrier international, french, recipe

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
International New York Times Recipe sansay Recipes 0 02-24-2014 01:05 AM
Recipe Request: International Consortium of Investigative Journalists, icij.org mojumoka Recipes 1 04-07-2013 11:47 PM
Courrier International josepinto Recipes 0 04-02-2013 11:59 AM
Recipe for Courrier International Abonné Mwandishi Recipes 0 11-17-2012 08:27 AM
Hardware des nouvelles fraîches du "courrier" de microsoft ! zelda_pinwheel Forum Français 5 05-04-2010 07:22 AM


All times are GMT -4. The time now is 04:35 PM.


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