Thread: La Croix recipe
View Single Post
Old 07-02-2023, 07:47 AM   #1
Villard
Connoisseur
Villard began at the beginning.
 
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'
Villard is offline   Reply With Quote