Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-14-2024, 05:26 AM   #1
LJBrown
Junior Member
LJBrown began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: Kindle Gen 5
French Newspaper Liberation Recipe only contents page

Hello,

Big fan of Calibre, over many years.

I would like to know if it is possible to remedy the problem with the download of the News source, Libération.

I have a user login and subscription, but the downloaded content is only the front page and the contents links.

By reading some of the other posts, this would be a broken recipe? However, while I have tried to add a new recipe, this didn't seem to help very much (it didn't work, at any rate).

Any help would be appreciated.

This is the news source : https://www.liberation.fr/


Have a nice day.

Luke
LJBrown is offline   Reply With Quote
Old 06-17-2024, 06:31 AM   #2
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
pm me your login details.
unkn0wn is offline   Reply With Quote
Advert
Old 06-23-2024, 05:53 PM   #3
Aimylios
Member
Aimylios began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2016
Device: Tolino Vision 3HD
I've updated the recipe to restore basic functionality. Paid articles are still not available, though. I'll leave that for someone else to fix.
Aimylios is offline   Reply With Quote
Old 06-24-2024, 06:04 AM   #4
LJBrown
Junior Member
LJBrown began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: Kindle Gen 5
Hello Aimylios,

Thank you for taking the time. I'll take a look and see how it reacts.

Have a nice day,

Luke
LJBrown is offline   Reply With Quote
Old 06-24-2024, 06:23 AM   #5
LJBrown
Junior Member
LJBrown began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: Kindle Gen 5
Hello Aimylios,

Just checked, and it seems to be working much better! Thank you very much!

Luke
LJBrown is offline   Reply With Quote
Advert
Old 06-26-2024, 06:36 PM   #6
zoltan.navy
Enthusiast
zoltan.navy began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Budapest, Hungary
Device: Kindle Keyboard
Hello,

Have the same problem. Have an account with liberation.fr but the built-in recipe doesn't work -- with or without my user data.

Have attached the error message.

Of course I want the recipe to work with my user data. I want to have this newspaper sent to my Kindle on a daily basis. Having the access to the web content is not good enough because for that I would have to be online.

Any help?

Zoltan
Attached Files
File Type: txt liberation.fr_failed.recipe.txt (23.2 KB, 163 views)
zoltan.navy is offline   Reply With Quote
Old 06-27-2024, 09:00 AM   #7
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
pm me your login details, i'll try.
unkn0wn is offline   Reply With Quote
Old 06-27-2024, 07:24 PM   #8
zoltan.navy
Enthusiast
zoltan.navy began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Budapest, Hungary
Device: Kindle Keyboard
Quote:
Originally Posted by unkn0wn View Post
pm me your login details, i'll try.
I will send my login details but after we get the recipe to work. That's the problem to begin with -- not that my login details are rejected. I have no idea whether or not they are since the recipe fails to work even in the "no subscription" mode.

When the recipe works again and there's an issue with my login, I'll be happy to share its details.
zoltan.navy is offline   Reply With Quote
Old 06-27-2024, 07:48 PM   #9
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,756
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Looking through the log it's full of ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006) messages, which implies an issue with SSL certificates.

I just tried and had no issues with it. Manually accessing the https://www.liberation.fr/arc/outbou...outputType=xml page showed no ceritifcate errors, and the certificate is valid from
Code:
 Issued On	Monday 22 April 2024 at 01:40:42
Expires On	Sunday 21 July 2024 at 01:40:41
This is with calibre 7.12 on a Chromebook
PeterT is offline   Reply With Quote
Old 06-27-2024, 08:02 PM   #10
zoltan.navy
Enthusiast
zoltan.navy began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Budapest, Hungary
Device: Kindle Keyboard
To Peter

Quote:
Originally Posted by PeterT View Post
Looking through the log it's full of ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006) messages, which implies an issue with SSL certificates.

I just tried and had no issues with it. Manually accessing the https://www.liberation.fr/arc/outbou...outputType=xml page showed no ceritifcate errors, and the certificate is valid from
Code:
 Issued On	Monday 22 April 2024 at 01:40:42
Expires On	Sunday 21 July 2024 at 01:40:41
This is with calibre 7.12 on a Chromebook

Thanks, Peter, that's one step closer. I'm not getting certification errors either when accessing the page directly. What could be done to get rid of the cert error the one gets when using calibre?
zoltan.navy is offline   Reply With Quote
Old 06-27-2024, 10:41 PM   #11
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,756
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Could you describe your setup.. what o/s, what browser (and version), what version of Calibre? What browser have you used to address the liberation web site?

In looking back through your posts you've had other issues related to certificates.. Did any of them get resolved?

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 06-28-2024, 07:22 AM   #12
zoltan.navy
Enthusiast
zoltan.navy began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Budapest, Hungary
Device: Kindle Keyboard
Quote:
Originally Posted by PeterT View Post
Could you describe your setup.. what o/s, what browser (and version), what version of Calibre? What browser have you used to address the liberation web site?

In looking back through your posts you've had other issues related to certificates.. Did any of them get resolved?

Sent from my Pixel 7a using Tapatalk
My calibre is 7.12. My browser is Firefox 105.0.2 (with automatic updates disabled because they often interfere with the add-ons). Have also Chrome installed but use it rarely. OS is Win 10 Pro for Workstations, my virus software Avast Premium. Does the browser have anything to do with the issue?

I wonder whether the problem could be solved by creating a custom recipe -- which I have done multiple times for a lot of outlets. As you've mentioned, the link https://www.liberation.fr/arc/outbou...outputType=xml works fine, so a new recipe could use that. If that's a solution, then I only need to figure out how to add my user name and password to a custom recipe.
zoltan.navy is offline   Reply With Quote
Old 06-28-2024, 07:35 AM   #13
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
if you are using windows, visit the webpage on edge browser to install certificates.

or you can add this code to the recipe.
Code:
def get_browser(self):
        return BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False)
I thought you were missing paid articles. If you want paid articles to work send me details to test.
unkn0wn is offline   Reply With Quote
Old 06-28-2024, 05:55 PM   #14
zoltan.navy
Enthusiast
zoltan.navy began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Aug 2018
Location: Budapest, Hungary
Device: Kindle Keyboard
Quote:
Originally Posted by unkn0wn View Post
if you are using windows, visit the webpage on edge browser to install certificates.

or you can add this code to the recipe.
Code:
def get_browser(self):
        return BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False)
I thought you were missing paid articles. If you want paid articles to work send me details to test.

So opening the page in Edge will install the certificates? Have just done that.

And calibre still won't download. It gets a bit further than before (by starting fetching feeds) but stops after a few seconds. Have attached the log.

How can I add the code you've shared to the built-in recipe?

Also, I created a custom recipe for https://www.liberation.fr/arc/outbou.../?redirected=1 . No error message with this one, however, it fails to download any article. Have added your 2-line code to the end but articles still won't download:

Code:
#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1719607517(BasicNewsRecipe):
    title          = 'Libération (pers.)'
    oldest_article = 3
    max_articles_per_feed = 100
    auto_cleanup   = True

    feeds          = [
        ('Articles', 'https://www.liberation.fr/arc/outboundfeeds/rss-all/collection/accueil-une/?redirected=1'),
    ]
def get_browser(self):
    return BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False)
In all, I wonder what's going on. Why is it that with some sites, it's such a struggle to make calibre access them and download stuff. (Why involve Edge in the first place, why add code to recipe, etc.)

For testing the download of paid articles: thanks for the offer, I'll take it up once I get the download of free articles to work.

Am using calibre portable btw.
Attached Files
File Type: txt liberation.fr_failed.recipe_02.txt (23.2 KB, 175 views)

Last edited by zoltan.navy; 06-28-2024 at 06:15 PM.
zoltan.navy is offline   Reply With Quote
Old 06-28-2024, 09:21 PM   #15
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,756
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Now the log shows both a login failure early on and still SSL errors

Is your windows totally up to date?

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Recipe: Newspaper Front Page Glenn680 Recipes 3 03-05-2024 12:34 PM
Recipe for Het Laatste Nieuws (Belgian newspaper) based on built in recipe of Darko M erkfuizfeuadjfjz Recipes 0 02-17-2017 04:11 PM
Recipe voor De Tijd (Belgian newspaper) based on built in recipe of Darko Miletic erkfuizfeuadjfjz Recipes 0 02-17-2017 03:43 PM
Recipe for the French news paper Liberation darkl Recipes 0 01-28-2012 03:17 PM
Liberation recipe downloading only headlines emai7s2 Recipes 3 08-20-2011 01:47 AM


All times are GMT -4. The time now is 01:07 AM.


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