![]() |
#1 |
Connoisseur
![]() Posts: 94
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
[Metadata Source Plugin] babelio_db
[Metadata Source Plugin] babelio_db
This plugin gets the metadata for books from the babelio site. The Babelio website The address to access Babelio is <https://www.babelio.com/>. The Babelio homepage says in french: "Babelio est un réseau social dédié aux livres et aux lecteurs. Il permet de créer et d’organiser sa bibliothèque en ligne, d’obtenir des informations sur des oeuvres, de partager et d’échanger ses goûts et impressions littéraires avec d’autres lecteurs." This translate to: "Babelio is a social network dedicated to books and readers. It allows you to create and organise your online library, get information about works, to share and exchange literary tastes and impressions with other readers." There is no need to log in to obtain information, (and that avoids the need of the management of an account in the plugin) Main Features
Note: babelio being a site with mostly french books for french talking poeple, I took the liberty to write the interface in french... (well I may have left some comments in french too... luckily, there is no french looking instructions in python ![]() Installation Notes:
babelio_db is visible on github https://github.com/lrpirlet/cal-babelio_db Recommendations: In order to give the babelio_db plugin time enough for the worse while not getting banned, you need to push the timeout to 45 seconds in the plugins setup (time in second after first match) last comment: This work is open source... I had fun writing it, if you think this work should be paid, choose a charity and give them, a little, with a mention like "Thanks to Louis Richard" or "Merci à Louis Richard" or something similar in your language. This will enhance my (unpublished) reputation... What charity? My worst nightmares involve fire, so I'm giving for deeply burned children... My wife is afraid of cancer so she gives to cancer research, we both feel bad about people starving so we give to the "resto du Coeur"... Unfortunately, there is always someone who needs help and will not be able to pay back (except perhaps with a thought for the stranger who helped them). So there is a lot of choices. En Français Spoiler:
Version History Spoiler:
The zip Sorry, because of a bug report, I was made aware that the version 0.8.6 had never been uploaded here... done now. Last edited by lrpirlet; 03-08-2024 at 01:32 PM. Reason: version 0.8.6 |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() Posts: 94
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
TEST version and old versions
A new version under test, that should work with the changes on Babelio.com.
Babelio_db 087 monitors the returned information from Babelio.com. Added a kind of "protection" against bad results from babelio.com... If Babelio.com returns a "title-author" different from the "requested title-author", the search will be abandoned... If you download a single piece of metadata, you will not get ANY suggestions. In the case of a massive upload of metadata, this selection will be labelled as having failed... Wait a while and then try again. Babelio.com will probably give you a correct answer if it has forgotten you. If Babelio.com returns another book after the search, an exception will be thrown and the plugin will NOT access Babelio.com for 23 hours... Hopefully this will make Babelio.com forget about you. Of course, it's possible to get around the limits, but I've decided that users of my plugin are smart enough to respect babelio.com and continue to receive information. En français : Spoiler:
Please do test this version and report any problem with detailed information... I have no intend to exacerbate Babelio.com (anymore) Will hold previous versions and, if any new version under test, if/when I have time to produce a new one. Initial version is Babelio_db 050.zip Babelio_db 051.zip corrects version 050, there is no reason to use version 050 Babelio_db 060 introduce a new series detection algorithm (no more missing series because title does not contains series). Notes that title may change from version 050 or 051 to better reflect what babelio propose. It also has a much better rate_limit to avoid being banned. Babelio_db 061 corrects a problem when the URL contains a '-' character within the <title> <title\>... "Hercule Poirot - Nouvelle" and "Hercule Poirot - Roman" would both end up as "Hercule Poirot" leading to show two different series under the same series name... ![]() Babelio_db 070 is able, provided you enable it, to add a new title "Popularité". In that section, you'll find the number of quotations and the mean of those quotations, with 2 decimals... Hope you enjoy it. Babelio_db 082 corrects a bug when the html tagging is not optimal ![]() Babelio_db 083 corrects a bad condition check that prevented optimization when babelio_id was present. A été détecté quand babelio_id était valide et le titre était "None" ou "Inconnu(e)". Babelio_db 084 takes into account the fact that the search engine of Babelio.com now works with a POST command instead of GET command. Babelio_db 085 allows one to reduce the number of tags you want (remember to delete all tags before trying to load less tags), by selection of the tag and the importance of a given tag function of the book. Babelio_db 086 if it finds an exact match between both the title found (stripped of the series part) and an author compared to the requested title and author, will only fetch the data of that "perfect match" Version up to 083 included are deleted as search was changed... Last edited by lrpirlet; 03-10-2024 at 05:33 PM. Reason: version 0.8.4 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 94
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
HELP... babelio_db plugin does not find a book that exist on Babelio
OK, this note is in french but is mostly made of pictures so it may still be useful to others...
La première image montre un livre vide avec pour seule info le titre: "Paideia" et l'auteur "Claire Garand"... La deuxième image montre la configuration des plugins La troisième visualise comment configurer le plugin babelio_db proprement dit. On sort en enregistrant la configuration, pour retomber devant le panneau de configuration de téléchargement des métadonnées. La quatrième montre comment quitter ce panneau. Enfin, 5, on peut télécharger les métadonnées. Problème Mais, 6, c'est vraiment pas ce que l'on veut... On enregistre le journal... Bon, j'ai lu le journal (fichier 7.txt)... Il n'y a pas de problème dans le plugin. On peut remarquer: Code:
-+-+-+-+-+-+-+-+-+-+ Entry point +-+-+-+-+-+-+-+-+-+- self.dgb_lvl : 11 self.with_cover : True self.with_pretty_comments : True self.with_detailed_rating : True Code:
title : Paideia authors : ['Claire Garand'] return query from create_query : http://www.babelio.com/resrecherche.php?Recherche=claire+garand+paideia&tri=auteur&item_recherche=livres&pageN=1 In ret_soup(log, dbg_lvl, br, url, rkt=none, who='' URL request time : 17:52:15 Accessing url : http://www.babelio.com/resrecherche.php?Recherche=claire+garand+paideia&tri=auteur&item_recherche=livres&pageN=1 (urlopen_with_retry) sr.getcode() : 200 In parse_search_results(self, log, orig_title, orig_authors, soup, br) orig_title : Paideia orig_authors : ['claire garand'] nombre de références trouvées dans babelio 2 nombre de matches : 2 matches at return time : https://www.babelio.com/livres/Pyatt-Confessions-du-pas-siGrand-Mechant-Loup/266290 https://www.babelio.com/livres/Pyatt-Lenvers-des-contes-tome-2--Journal-du-pas-sig/694328 Accessoirement, on peut voir le nombre d'accès et leur timing: Code:
timing of the accesses to Babelio for this book When : Thu Jun 1 17:52:15 2023; Who : [__init__]; Where : https://www.babelio.com/resrecherche.php?Recherche=claire+garand+paideia&tri=auteur&item_recherche=livres&pageN=1 When : Thu Jun 1 17:52:17 2023; Who : [worker 0]; Where : https://www.babelio.com/livres/Pyatt-Confessions-du-pas-siGrand-Mechant-Loup/266290 When : Thu Jun 1 17:52:18 2023; Who : [worker 0]; Where : https://www.babelio.com/aj_voir_plus_a.php When : Thu Jun 1 17:52:19 2023; Who : [worker 1]; Where : https://www.babelio.com/livres/Pyatt-Lenvers-des-contes-tome-2--Journal-du-pas-sig/694328 When : Thu Jun 1 17:52:21 2023; Who : [worker 1]; Where : https://www.babelio.com/serie/Lenvers-des-contes/6316 l'image 8 confirme que c'est la faute à babelio... Faudrait rapporter mais pour le moment je suis (encore) banni à force de tests. Solution Il suffit de rentrer le babelio_id à la bonne place avant de recommencer le téléchargement des métadonnées image 9: copie l'adresse de la page du livre désiré... image 10: Dans le panneau d'édition des métadonnées clique sur la bonn icone pour introduire le Babelio_id (le babelio_id est en fait l'information minimum nécessaire pour reconstituer l'adresse de la page de l'ouvrage) Image 11: gagné... Image 12: Hey... on peut accéder directement a la page, que l'on aie ou non, décidé d'inclure la référence dans les commentaires. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2023
Device: kobo libra
|
Bonjour Irpirlet,
Tout d'abord merci pour ce plugin qui m'a vraiment permis d'uniformiser les metadatas de l’ensemble de ma bibliothèque virtuelle. Il a fonctionné pour l'immense majorité des livres de celle-ci, à quelques exceptions près. Par exemple avec le livre "photos volées" de "Dominique Fabre". Le log, de ce que j'en comprends, me semble ok, c'est à dire qu'il me trouve bien sur babelio la page qui lui est consacré, et sans qu'il y ait aucun autre choix possible, mais il ne me remplis pas la fiche du livre et me sort une erreur "Impossible de trouver un livre correspondant, bla, bla bla..."? Voici le log en question : Code:
Running identify query with parameters: {'title': 'Photos Volées', 'authors': ['Dominique Fabre'], 'identifiers': {}, 'timeout': 30} Using plugins: Babelio_db (0, 8, 0) The log from individual plugins is below ****************************** Babelio_db (0, 8, 0) ****************************** Found 0 results Downloading from Babelio_db took 2.183969020843506 -+-+-+-+-+-+-+-+-+-+ Entry point +-+-+-+-+-+-+-+-+-+- self.dgb_lvl : 15 self.with_cover : False self.with_pretty_comments : False self.with_detailed_rating : False In identify(self, log, result_queue, abort, title=.., authors=.., identifiers=.., timeout=30) title : Photos Volées identifiers : {} authors : ['Dominique Fabre'] <class 'list'> Pas de résultat avec babelio_id ou avec l'ISBN, on recherche les auteurs et le titre. in create_query() title : Photos Volées authors : ['Dominique Fabre'] In ret_clean_txt(self, log, text, who='') text : Dominique Fabre cleaned text : dominique fabre return text from ret_clean_txt In ret_clean_txt(self, log, text, who='') text : Photos Volées cleaned text : photos volees return text from ret_clean_txt return query from create_query : http://www.babelio.com/resrecherche....es&pageN=1 In ret_soup(log, dbg_lvl, br, url, rkt=none, who='' URL request time : 19:05:14 br : <Browser (not visiting a URL)> url : http://www.babelio.com/resrecherche....es&pageN=1 rkt : None Accessing url : http://www.babelio.com/resrecherche....es&pageN=1 In urlopen_with_retry(log, dbg_lvl, br, url, rkt, who='') (urlopen_with_retry) sr.getcode() : 200 url_vrai : https://www.babelio.com/resrecherche...es&pageN=1 sr.info() : Server: nginx Date: Tue, 27 Jun 2023 17:05:16 GMT Content-Type: text/html; charset=ISO-8859-1 Connection: close Set-Cookie: p=FR; expires=Wed, 26-Jun-2024 17:05:16 GMT; Max-Age=31536000 Set-Cookie: disclaimer=1; expires=Wed, 26-Jun-2024 17:05:16 GMT; Max-Age=31536000 Cache-Control: no-cache Expires: Tue, 27 Jun 2023 17:05:15 GMT Vary: Accept-Encoding X-Frame-Options: SAMEORIGIN content-type: text/html; charset=iso-8859-1 content-language: fr-FR cache-control: no-cache pragma: no-cache expires: -1 x-ua-compatible: IE=edge In parse_search_results(self, log, orig_title, orig_authors, soup, br) orig_title : Photos Volées orig_authors : ['dominique fabre'] In ret_clean_txt(self, log, text, who='') text : Photos volées cleaned text : photos volees return text from ret_clean_txt In ret_clean_txt(self, log, text, who='') text : Photos Volées cleaned text : photos volees return text from ret_clean_txt In ret_clean_txt(self, log, text, who='') text : Dominique Fabre cleaned text : dominique fabre return text from ret_clean_txt In ret_clean_txt(self, log, text, who='') text : dominique fabre cleaned text : dominique fabre return text from ret_clean_txt nombre de références trouvées dans babelio 1 nombre de matches : 1 matches at return time : https://www.babelio.com/livres/Fabre...-volees/615123 matches : ['https://www.babelio.com/livres/Fabre-Photos-volees/615123'] [worker 0] entry time : Tue Jun 27 19:05:15 2023 [worker 0] self.url : https://www.babelio.com/livres/Fabre...-volees/615123 [worker 0] self.relevance : 0 [worker 0] self.plugin : <calibre_plugins.babelio_db.Babelio object at 0x000001CCA725F2B0> [worker 0] self.dbg_lvl : 15 [worker 0] self.timeout : 20 [worker 0] self.with_cover : False [worker 0] self.with_pretty_comments : False [worker 0] self.with_detailed_rating : False submit time : Tue Jun 27 19:05:15 2023 [worker 0] in run(self) [worker 0] in get_details(self) [worker 0] in get details(), start time : 1687885515.4202292 [worker 0] calling ret_soup(log, dbg_lvl, br, url, rkt=None, who='') [worker 0] self.url : https://www.babelio.com/livres/Fabre...-volees/615123 [worker 0] In ret_soup(log, dbg_lvl, br, url, rkt=none, who='' [worker 0] URL request time : 19:05:16 [worker 0] br : <Browser (not visiting a URL)> [worker 0] url : https://www.babelio.com/livres/Fabre...-volees/615123 [worker 0] rkt : None [worker 0] Accessing url : https://www.babelio.com/livres/Fabre...-volees/615123 [worker 0] In urlopen_with_retry(log, dbg_lvl, br, url, rkt, who='') [worker 0] (urlopen_with_retry) sr.getcode() : 200 [worker 0] url_vrai : https://www.babelio.com/livres/Fabre...-volees/615123 [worker 0] sr.info() : Server: nginx Date: Tue, 27 Jun 2023 17:05:17 GMT Content-Type: text/html; charset=ISO-8859-1 Connection: close Cache-Control: no-cache Expires: Tue, 27 Jun 2023 17:05:16 GMT Vary: Accept-Encoding X-Frame-Options: SAMEORIGIN content-type: text/html; charset=iso-8859-1 content-language: fr-FR cache-control: no-cache pragma: no-cache expires: -1 x-ua-compatible: IE=edge [worker 0] Temps après ret_soup()... : 1.5022366046905518 [worker 0] in parse_bbl_id [worker 0] bbl_id : Fabre-Photos-volees/615123 [worker 0] Temps après parse_bbl_id() ... : 1.5022366046905518 [worker 0] in parse_details(self, soup) [worker 0] in parse_details(), new start : 1687885516.9224658 [worker 0] in parse_authors(self, soup) [worker 0] return bbl_authors ['Dominique Fabre'] [worker 0] Temps après parse_authors() ... : 0.001985788345336914 [worker 0] in parse_title_series(self, soup, bbl_authors) [worker 0] bbl_title : Photos volées - Dominique Fabre [worker 0] name : Dominique Fabre [worker 0] bbl_title : Photos volées [worker 0] Temps après parse_title_series() ... : 0.0074956417083740234 [worker 0] in parse_meta(self, soup) [worker 0] bbl_publisher processed : Editions de l'Olivier [worker 0] bbl_isbn processed : 9782823600711 [worker 0] bbl_pubdate processed : 2014-01-21 00:00:00 [worker 0] parse_meta() returns bbl_isbn, bbl_publisher, bbl_pubdate : 9782823600711 Editions de l'Olivier 2014-01-21 00:00:00 [worker 0] Temps après parse_meta() ... : 0.009495019912719727 [worker 0] in parse_rating(self, soup) [worker 0] parse_rating() returns bbl_rating : 3.21, bbl_rating_cnt : 38 [worker 0] Temps après parse_rating() ... : 0.01151585578918457 [worker 0] in parse_tags(self, soup) [worker 0] parse_tags() return bbl_tags ['Roman', 'Senior', 'Solitude', 'Mélancolie', 'Vieillesse', 'Nostalgie', 'Détail', 'Littérature Adulte', 'Amitié', 'Chômage', 'Amour', 'Photographie', 'Photos', 'Divorce', 'Littérature Française', 'Rentrée Littéraire 2014', 'Contemporain'] [worker 0] Temps après parse_tags() ... : 0.014503240585327148 Téléchargement de la couverture désactivé [worker 0] Temps après parse_cover() ... : 0.014503240585327148 [worker 0] in parse_comments(self, soup) [worker 0] with_pretty_comments : False get_details failed for url: 'https://www.babelio.com/livres/Fabre-Photos-volees/615123' Traceback (most recent call last): File "calibre_plugins.babelio_db.worker", line 68, in run File "calibre_plugins.babelio_db.worker", line 103, in get_details File "calibre_plugins.babelio_db.worker", line 231, in parse_details File "bs4\element.py", line 1613, in encode File "bs4\element.py", line 1677, in decode TypeError: unsupported operand type(s) for -: 'str' and 'int' timing of the accesses to Babelio for this book When : Tue Jun 27 19:05:15 2023; Who : [__init__]; Where : https://www.babelio.com/resrecherche...es&pageN=1 When : Tue Jun 27 19:05:16 2023; Who : [worker 0]; Where : https://www.babelio.com/livres/Fabre...-volees/615123 ******************************************************************************** The identify phase took 2.24 seconds The longest time (2.183969) was taken by: Babelio_db Merging results from different sources We have 0 merged results, merging took: 0.00 seconds Donc je sèche un peu et si tu as l'occasion de me filer un coup de main. Merci pour ton retour. |
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 94
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Quote:
Le problème ne se présentait que si on refusait les commentaires étendus. Il semble que le problème vient de la page html associée avec ce livre particulier. Il semble que le "tagging" soit déséquilibré ce qui fait crasher le plugin... La solution, que je te demande de tester est sous la seconde entrée de ce thread sous la version 0.8.2. Quand cette correction sera validée, je la pousserai pour update automatique. Last edited by lrpirlet; 06-30-2023 at 04:15 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2017
Device: Ipad
|
Hello,
First of all, thanks for giving us this very useful plugin ! The tags received from babelio are stored in the "default" tags column. Is it possible to store them in a custom column instead ? I would like to avoid mixing those tags with my "curated" tags. DaltonSt uses this kind of solution in his "LCCCode" plugin to store "Fast Tags" in a well defined custom column. The reason is that the tags from babelio are quite useful but the users of babelio are quite creative when it comes to create new tags... It makes creating rules to transform / reject tags rather unmanageable. Thanks again for the time you devote to maintain the plugin ! |
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() Posts: 94
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
![]()
Hello, Thanks for your positive comments... It is always nice to receive appreciation and thanks for a hard work.
Quote:
Unluckily, Babelio_db plugin is a metadata plugin that gets "integrated within calibre": the entry point is a calibre routine, the exit point is another calibre routine and many routine written into the metadata plugin are invoked by calibre... I am very sorry but what you ask is NOT possible from within a metadata plugin. (I know, I have been looking hard and found that Kovid Goyal said "no no" for custom columns from inside a metadata plugin). See both [Metadata Source Plugin] noosfere DB and [GUI Plugin] Noosfere_util, a companion plugin to noosfere DB Noosfere is so rich that I wanted more custom columns.. so I over-used (or maybe ab-used) the publisher field in the metadata plugin then designed some procedures to distribute the info in a gui plugin... I would suggest a workaround for you: just create a custom column named curated_tags, copy the tag columns to the curated_tags columns before using babelio_db... good luck (I mean make a backup before any poking around) Last edited by lrpirlet; 07-18-2023 at 12:33 PM. |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2017
Device: Ipad
|
Merci pour ces explications et les conseils !
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2019
Location: France
Device: Kobo Aura
|
Bonjour lrpirlet ,
Merci d'avoir développé et partagé ce plugin. A moi aussi il m'est très utile. Ma bibliothèque Calibre est impeccable maintenant. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: Kobo
|
Bonjour,
J'ai un soucis dans l'utilisation de babelio_db. J'utilise calibre dans sa version portable car je stocke tout sur un ssd externe et ça me permet d'avoir ma biblio sur tous mes pc. J'ai essayé d'installer le plugin par l'ajout de plugin de l'interface, j'ai essayé aussi de lancer le bat. Je rencontre l'erreur suivante : calibre, version 6.25.0 ERREUR : Aucune correspondance trouvée: <p>Impossible de trouver un livre correspondant à votre recherche. Essayer de faire une recherche <b>moins spécifique</b>. Par exemple, utiliser seulement le nom de famille de l'auteur et un mot distinctif du titre.<p> Pour voir le journal en entier, cliquer "Afficher les détails. Running identify query with parameters: {'title': 'Succombe moi, tome 2', 'authors': ['Virginie E. Gérard'], 'identifiers': {'isbn': '9782379872556', 'babelio': '1417202', 'babelio_id': 'Gerard-Succombe-moi-tome-2/1417202'}, 'timeout': 30} Using plugins: Babelio_db (0, 8, 3) The log from individual plugins is below ****************************** Babelio_db (0, 8, 3) ****************************** Found 0 results Downloading from Babelio_db took 21.66550064086914 -+-+-+-+-+-+-+-+-+-+ Entry point +-+-+-+-+-+-+-+-+-+- self.dgb_lvl : 3 self.with_cover : True self.with_pretty_comments : True self.with_detailed_rating : True In identify(self, log, result_queue, abort, title=.., authors=.., identifiers=.., timeout=30) title : Succombe moi, tome 2 identifiers : {'isbn': '9782379872556', 'babelio': '1417202', 'babelio_id': 'Gerard-Succombe-moi-tome-2/1417202'} authors : ['Virginie E. Gérard'] <class 'list'> babelio identifier trouvé... pas de recherche sur babelio... on saute directement au livre matches : ['https://www.babelio.com/livres/Gerard-Succombe-moi-tome-2/1417202'] [worker 0] entry time : Mon Aug 28 01:05:05 2023 [worker 0] self.url : https://www.babelio.com/livres/Gerar...tome-2/1417202 [worker 0] self.relevance : 0 [worker 0] self.plugin : <calibre_plugins.babelio_db.Babelio object at 0x0000019664FF5000> [worker 0] self.dbg_lvl : 3 [worker 0] self.timeout : 20 [worker 0] self.with_cover : True [worker 0] self.with_pretty_comments : True [worker 0] self.with_detailed_rating : True submit time : Mon Aug 28 01:05:05 2023 [worker 0] in run(self) [worker 0] in get_details(self) [worker 0] calling ret_soup(log, dbg_lvl, br, url, rkt=None, who='') [worker 0] self.url : https://www.babelio.com/livres/Gerar...tome-2/1417202 [worker 0] Accessing url : https://www.babelio.com/livres/Gerar...tome-2/1417202 [worker 0] (urlopen_with_retry) <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)> , will retry in 3 seconds... [worker 0] (urlopen_with_retry) <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)> , will retry in 6 seconds... [worker 0] (urlopen_with_retry) <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)> , will retry in 12 seconds... [worker 0] exception occured... get_details failed for url: 'https://www.babelio.com/livres/Gerard-Succombe-moi-tome-2/1417202' Traceback (most recent call last): File "mechanize\_urllib2_fork.py", line 1236, in do_open File "http\client.py", line 1282, in request File "http\client.py", line 1328, in _send_request File "http\client.py", line 1277, in endheaders File "http\client.py", line 1037, in _send_output File "http\client.py", line 975, in send File "http\client.py", line 1454, in connect File "ssl.py", line 512, in wrap_socket File "ssl.py", line 1070, in _create File "ssl.py", line 1341, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre_plugins.babelio_db.__init__", line 81, in urlopen_with_retry File "mechanize\_mechanize.py", line 257, in open File "mechanize\_mechanize.py", line 287, in _mech_open File "mechanize\_opener.py", line 193, in open File "mechanize\_urllib2_fork.py", line 425, in _open File "mechanize\_urllib2_fork.py", line 414, in _call_chain File "calibre\utils\browser.py", line 28, in https_open File "mechanize\_urllib2_fork.py", line 1240, in do_open urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)> During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre_plugins.babelio_db.worker", line 63, in run File "calibre_plugins.babelio_db.worker", line 80, in get_details File "calibre_plugins.babelio_db.__init__", line 60, in __call__ File "calibre_plugins.babelio_db.__init__", line 127, in ret_soup File "calibre_plugins.babelio_db.__init__", line 98, in urlopen_with_retry AttributeError: 'URLError' object has no attribute 'code' ************************************************** ****************************** The identify phase took 21.85 seconds The longest time (21.665501) was taken by: Babelio_db Merging results from different sources We have 0 merged results, merging took: 0.00 seconds J'ai utilisé un livre qui a été trouvé par l'ancienne version de babelio_notes afin d'améliorer mes chances d'avoir un résultat. J'ai vu une erreur de certificats. Chose bizarre, quand je vais dans les colonnes perso, je ne vois pas la colonne babelio_id. Faut-il impérativement la version de calibre desktop? D'avance merci. J'ai hâte que tout ça fonctionne. |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: Kobo
|
Re-bonjour,
J'ai dwn la version desktop, installé babelio_db et babelio_notes et tout fonctionne bien. Je vais donc partir sur cette solution. Merci pour le taf, ça fonctionne très bien. |
![]() |
![]() |
![]() |
#12 | ||
Connoisseur
![]() Posts: 94
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Quote:
Si ça marche sur un et pas sur l'autre c'est que le problème n'est probablement pas dans le plugin qui marche bien ailleurs, mais plutôt dans le PC qui ne marche pas... Quote:
As-tu eu ce message sur un PC derrière un firewall corporate? (au boulot par exemple?). Il signifie que le site qui commence par https:// et ton pc ne peuvent pas s'accorder et que la connection est rejetée. Seule une personne qui connait l'environnement peut t'aider, et éventuellement changer le certificat. |
||
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: Kobo
|
comme dit juste après, ça vient de la version "portable" de calibre. Sur le même PC, j'ai installé la version windows desktop et ton plugin marche très bien. (sur la même bibliothèque.)
Ce qui me convient tout à fait. Je fais la MAJ des infos méta à partir de la version desktop et je peux toujours ouvrir ma bibliothèque avec mon calibre portable n'importe où. |
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2023
Device: Kobo Libra 2
|
bonjour, je voulais savoir si il était possible de récupérer seulement les étiquettes les plus importantes sur Babelio.
En effet chaque livre à plusieurs étiquettes certaines sont écrites en plus gros et donc je voudrais que sur calibre seul ces étiquettes écrite en gros soit prise en compte, car sinon il met 10 - 15 étiquettes ^^ je pourrait limiter le nombres à 1 ou 2 en effet mais je ne suis pas sur qu'il prendrait l'étiquette qui m’intéresse. j'ai mis une image pour illustrer ce que je voudrait qu'il prenne (en bleue) ![]() ![]() |
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2023
Device: Kobo Libra 2
|
hello,
This no longer works correctly. all searches lead to errors. It worked well during the day and suddenly it didn't work anymore ![]() In fact, it only works if I put the "babelio_id:" but that means having to look up the ID on the site for each book.... whereas before just with the right title without the id it worked very well ![]() Code:
Running identify query with parameters: {'title': 'Paper money', 'authors': ['Ken Follett'], 'identifiers': {'isbn': '9782253160120'}, 'timeout': 30} Using plugins: Babelio_db (0, 8, 3) The log from individual plugins is below ****************************** Babelio_db (0, 8, 3) ****************************** Found 0 results Downloading from Babelio_db took 21.920482397079468 -+-+-+-+-+-+-+-+-+-+ Entry point +-+-+-+-+-+-+-+-+-+- self.dgb_lvl : 3 self.with_cover : True self.with_pretty_comments : True self.with_detailed_rating : True In identify(self, log, result_queue, abort, title=.., authors=.., identifiers=.., timeout=30) title : Paper money identifiers : {'isbn': '9782253160120'} authors : ['Ken Follett'] <class 'list'> ISBN identifier trouvé, on cherche cet ISBN sur babelio : https://www.babelio.com/resrecherche.php?Recherche=9782253160120&item_recherche=isbn Accessing url : https://www.babelio.com/resrecherche.php?Recherche=9782253160120&item_recherche=isbn (urlopen_with_retry) HTTP Error 404: Not Found , will retry in 3 seconds... (urlopen_with_retry) HTTP Error 404: Not Found , will retry in 6 seconds... (urlopen_with_retry) HTTP Error 404: Not Found , will retry in 12 seconds... exception occured... code : 404 reason : Not Found Plugin Babelio_db failed Traceback (most recent call last): File "calibre_plugins.babelio_db.__init__", line 81, in urlopen_with_retry File "mechanize\_mechanize.py", line 257, in open File "mechanize\_mechanize.py", line 313, in _mech_open mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 404: Not Found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\ebooks\metadata\sources\identify.py", line 47, in run File "calibre_plugins.babelio_db.__init__", line 393, in identify File "calibre_plugins.babelio_db.__init__", line 60, in __call__ File "calibre_plugins.babelio_db.__init__", line 127, in ret_soup File "calibre_plugins.babelio_db.__init__", line 99, in urlopen_with_retry Exception: ('(urlopen_with_retry) Failed while acessing url : ', 'https://www.babelio.com/resrecherche.php?Recherche=9782253160120&item_recherche=isbn') ******************************************************************************** The identify phase took 22.09 seconds The longest time (21.920482) was taken by: Babelio_db Merging results from different sources We have 0 merged results, merging took: 0.00 seconds |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] Comicvine | chewt0y | Plugins | 88 | 07-11-2022 01:00 PM |
[Metadata Source Plugin] INMONDADORI | Pr.BarnArt | Plugins | 7 | 12-03-2021 01:56 PM |
Read a book's metadata in a Metadata source plugin? | J-H | Development | 2 | 03-30-2021 10:08 AM |
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 09:07 PM |
[Metadata Source Plugin] LubimyCzytac [PL] | jbienko1 | Plugins | 33 | 01-23-2017 07:15 AM |