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 07-26-2018, 06:21 AM   #31
Muller
Member
Muller began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2018
Device: Kindle oasis
Sorry about that, Kovid. I forgot I am using a slightly modified version (with sections names more similar to the paper edition). I will try the builtin version next time I get an error message (maybe next tuesday...)

Thank you very much for your answer.
Muller is offline   Reply With Quote
Old 07-31-2018, 02:51 PM   #32
Muller
Member
Muller began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2018
Device: Kindle oasis
Hello ! I just realised that I used a wrong name in my post of the last week : I wanted to refer to the recipe "Le monde : éditions abonnés papier", which was originally written by Rémi Vanicat and was the subject of this thread three months ago. Sorry about that.

Well, this tuesday, the "list index out of range" error is back and with the buitin recipe, as I just checked (I cancelled my custom version).

Thank you for your help.
Attached Files
File Type: txt Le Monde recipe error.txt (3.9 KB, 211 views)
Muller is offline   Reply With Quote
Old 07-31-2018, 05:40 PM   #33
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm not the author f the recipe, so icant be sure, but it looks like there is some section i nthe download that has different HTML markup from what the recipe is expecting. The recipe will need to be updated to deal with that.
kovidgoyal is offline   Reply With Quote
Old 08-03-2018, 08:07 AM   #34
Muller
Member
Muller began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2018
Device: Kindle oasis
Thank you, Kovid !
Muller is offline   Reply With Quote
Old 04-08-2019, 05:47 PM   #35
frague
Junior Member
frague began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2017
Location: Paris, France
Device: Kindle Paperwhite
Hello Kovid,
Here is the updated version of the recipe I posted one year ago. There have been many modifications on Le Monde website. I have just updated the categories, it is working perfectly well.
Thanks again for all your work
Attached Files
File Type: txt Le Monde subscriber paper edition.txt (6.2 KB, 219 views)
frague is offline   Reply With Quote
Old 04-09-2019, 12:58 AM   #36
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
thanks, updated.
kovidgoyal is offline   Reply With Quote
Old 06-16-2019, 02:55 PM   #37
frague
Junior Member
frague began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2017
Location: Paris, France
Device: Kindle Paperwhite
Hello Kovid,
The recipe does not work on the very last releases. It is still working on Calibre 3.39.1 bot not on 3.44 and 3.43. I have tried clean install of each version, still the same error. Here is the error :

calibre, version 3.44.0 (win32, embedded-python: True)
Erreur lors de la conversion: Échoué: Récupérer des actualités à partir de Le Monde: Édition abonnés papier
Récupérer des actualités à partir de Le Monde: Édition abonnés papier
Conversion options changed from defaults:
verbose: 2
output_profile: u'tablet'
Resolved conversion options
calibre version: 3.44.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0,
'book_producer': None,
'change_justification': u'original',
'chapter': None,
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_download_recipe': False,
'dont_split_on_page_breaks': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': None,
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x000001CA82338860>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0,
'linearize_tables': False,
'lrf': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x000001CA823D6320>,
'page_breaks_before': None,
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': None,
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': None,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': u'',
'sr1_search': u'',
'sr2_replace': u'',
'sr2_search': u'',
'sr3_replace': u'',
'sr3_search': u'',
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'test': False,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': None,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: Recipe Input running
Downloading recipe urn: builtin:le_monde_sub_paper
Trying to get latest version of recipe: le_monde_sub_paper
Python function terminated unexpectedly
'function' object has no attribute 'HTML_ENTITIES' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 200, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 35, in gui_convert_recipe
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 27, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1110, in run
File "site-packages\calibre\customize\conversion.py", line 246, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\recipe_ input.py", line 139, in convert
File "site-packages\calibre\web\feeds\news.py", line 1022, in download
File "site-packages\calibre\web\feeds\news.py", line 1190, in build_index
File "<string>", line 132, in parse_index
AttributeError: 'function' object has no attribute 'HTML_ENTITIES'[/INDENT]
frague is offline   Reply With Quote
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
Old 08-31-2019, 05:50 AM   #39
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This should fix that error:

https://github.com/kovidgoyal/calibr...794e6a9fc4a02c
kovidgoyal is offline   Reply With Quote
Old 08-31-2019, 07:09 AM   #40
MPec
Junior Member
MPec began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2019
Device: KOBO Aura
Hello Kovid,

thank for your answer !

Sadly, the new recipe always only returns the titles ...

here is the epub file returned by the recipe : Monde_ Edition abonnes papier dimanche 01 septembre 2019, Le - calibre.epub

and the zip file with the the corresponding datas : 190901.zip

thank you
MPec is offline   Reply With Quote
Old 08-31-2019, 08:51 AM   #41
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorry that's about as much effort as I am willing to put into this recipe
kovidgoyal is offline   Reply With Quote
Old 08-31-2019, 10:11 AM   #42
MPec
Junior Member
MPec began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2019
Device: KOBO Aura
OK.

Thank you, nevertheless.

regards.
MPec is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Le monde: édition abonnés" broken recipe Acryde Recipes 2 02-15-2017 04:17 AM
Le Monde: Edition abonnés cover display problem Acryde Recipes 0 07-21-2016 07:55 AM
Recipe for "Le monde édition abonné" darkl Recipes 13 02-19-2013 10:04 PM
Recipe for Courrier International Abonné Mwandishi Recipes 0 11-17-2012 08:27 AM
PRS-950 daily edition ?? would it work in india?? asdx Sony Reader 4 09-25-2010 02:08 PM


All times are GMT -4. The time now is 05:23 PM.


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