View Single Post
Old 08-31-2019, 05:05 AM   #38
MPec
Junior Member
MPec began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2019
Device: KOBO Aura
Hello,

i have the same issue with the the Rémi Vanicat's recipe "Le Monde: Édition abonnés papier" :
"File "<string>", line 132, in parse_index
AttributeError: 'function' object has no attribute 'HTML_ENTITIES'[/INDENT]"

i tried to fix it replacing "from calibre.ebooks.BeautifulSoup import BeautifulSoup" by "from bs4 import BeautifulSoup"

and, in line 132,
"soup = BeautifulSoup(tmp, convertEntities=BeautifulSoup.HTML_ENTITIES)" by "soup = BeautifulSoup(tmp).

it works, but the recipes returns only the articles titles without the contents.

i'm not an python expert, but it seems always like a parsing problem ?

here is the recipe i modified : Le Monde: Édition abonnés papier.txt

this recipe use data from http://medias.lemonde.fr/abonnes/edi...tml/190830.zip

who returns : 190830.zip

thank you for having a look.
MPec is offline   Reply With Quote