|
|
#1 |
|
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: May 2016
Device: Koreader running on Kobo Libra 2
|
La Croix recipe
Hello
I'm creating a recipe for the french newspaper La Croix. I'm starting with a very basic recipe with a feeds (see below) without any transformation on the article. But when I run the recipe, the top of each article is missing : The article begins directly with the body of the article and I do not get the title, as well as the overview and the image. How can I get all the article ? It seems the recipe skips some tags. Thank you for your help ! Villard #!/usr/bin/env python
# vim:fileencoding=utf-8 from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1685643625(BasicNewsRecipe): title = 'La Croix' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True needs_subscription = 'optional' language = 'fr' feeds = [ ('Actualités : France', 'https://www.la-croix.com/RSS/UNIVERS_WFRA'), ] calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36' |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
remove auto_cleanup = True and instead do the cleanup manually with keep_only_tags and remove_tags, see https://manual.calibre-ebook.com/news.html for details.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: May 2016
Device: Koreader running on Kobo Libra 2
|
Great ! Thank you very much and sorry because I've never looked after this line....
Villard |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Per-recipe settings without editing the recipe? | bobbysteel | Recipes | 3 | 03-05-2017 08:40 AM |
| 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 |
| ft recipe financial_times_us.recipe | piet8stevens | Recipes | 3 | 03-05-2016 04:55 AM |
| Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 05:57 AM |