Debian Codegraph @

recipes/el_nacional.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class ElNacional(BasicNewsRecipe):
7 title = 'ElNacional.cat'
8 description = (
9 'ElNacional.cat is an online Catalan-language newspaper edited in Barcelona.'
10 ' It is ranked 1st by unique monthly visitors among Catalan newspapers,'
11 ' with over 3.3 million monthly visitors as at March 2022.'
12 )
13 oldest_article = 2 # days
14 max_articles_per_feed = 30 # articles
15 auto_cleanup = True
16 language = 'ca'
17 __author__ = 'santboia'
18 encoding = 'utf-8'
19 use_embedded_content = False
20 no_stylesheets = True
21 remove_attributes = ['style', 'height', 'width']
22 ignore_duplicate_articles = {'url'}
23
24 feeds = [
25 ('Portada', 'https://www.elnacional.cat/uploads/feeds/feed_ca.xml'),
26 ]