07-02-2023, 07:47 AM | #1 |
Connoisseur
Posts: 64
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' |
07-02-2023, 10:22 AM | #2 |
creator of calibre
Posts: 44,017
Karma: 22669822
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.
|
07-03-2023, 09:35 AM | #3 |
Connoisseur
Posts: 64
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 07:40 AM |
Recipe for Het Laatste Nieuws (Belgian newspaper) based on built in recipe of Darko M | erkfuizfeuadjfjz | Recipes | 0 | 02-17-2017 03:11 PM |
Recipe voor De Tijd (Belgian newspaper) based on built in recipe of Darko Miletic | erkfuizfeuadjfjz | Recipes | 0 | 02-17-2017 02:43 PM |
ft recipe financial_times_us.recipe | piet8stevens | Recipes | 3 | 03-05-2016 03:55 AM |
Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 04:57 AM |