![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2014
Location: Switzerland
Device: Android tablet - Aldiko
|
Need help with le_temps.recipe
I cannot get the builtin recipe for "Le Temps" to work properly.
Perhaps am I doing something stupid as I had never tried the news part of calibre in the past. But I got some other recipes to work properly. I noticed that the structure of the pages has probably changed since the creation of the recipe (2009). I therefore tried to adjust the recipe but had no succes at all. I also noticed that the rss from "Le Temps" are redirected to rss.feedsportal.com, a site providing statistical information to online publishers. I then started to susppect a login problem. Note that the login through get_browser seems to work, at least I receive the proper error message if I provide a wrong password. I therefore tried to compare the epub produced with and without login (set needs_subscription to False end removed the overload of get browser). I was very surprised to see that the produced epub are exactly the same. The table of content is properly built but the pages themselves contain only the title and the teaser, plus some icons probably added by rss.feedsportal.com (see the attached epub). I suspect, but have no proof, that the cookies returned by the login process are not stored properly, perhaps with the wrong url. Now, I don't know what to do next and where to look. Any help wold be greatly appreciated. R. Kessi |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,296
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
remove keep_only_tags and remove_tags and add use_embedded_content = False
Then you should get the ful apge downloads, which you can cleanup by adding the keep_only_tags and remove_tags back one by one. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2014
Location: Switzerland
Device: Android tablet - Aldiko
|
Thank you very much Kovid for your fast response.
I had already removed the keep_only_tags and remove_tags. However I completely missed the use_embedded_content = False. Now I get the pages. Next week, I hope to find some time to work on the page formating. When I have something pleasant to me, I will post here the modified recipe. Last edited by rk43; 01-30-2014 at 09:11 AM. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2014
Location: Switzerland
Device: Android tablet - Aldiko
|
A new version of le_temps.recipe
I have made some progress in fixing le_temps. recipe. Although it certainly can still be improved, this one works fine for me. This is why I submit it here.
If anybody has suggestions to improve it, I would be glad to hear about these. Spoiler:
Also, if you have questions about my code, please feel free to post them below. I also suggests that, after reviewing my code, Kovid replaces the built-in recipe by this one. Roland Kessi |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,296
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
FT Recipe 10/27 | rainrdx | Recipes | 6 | 10-29-2012 10:27 PM |
Recipe help please | wmaurer | Recipes | 0 | 04-23-2012 03:48 AM |
Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 04:57 AM |
Recipe for ng.pl | markoz | Recipes | 4 | 04-13-2011 05:03 PM |
New Recipe | UtahJames | Recipes | 1 | 04-11-2011 04:15 PM |