Various Catalan language news sources by santboia

This commit is contained in:
Kovid Goyal 2022-05-09 12:10:01 +05:30
parent a2823eceed
commit eead15b591
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 76 additions and 0 deletions

24
recipes/ara.recipe Normal file
View File

@ -0,0 +1,24 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe
class Ara(BasicNewsRecipe):
title = 'Ara (diari)'
__author__ = 'santboia'
description = ('Ara.cat is an online Catalan-language newspaper edited in Barcelona.'
' It is ranked 2nd by unique monthly visitors among Catalan newspapers,'
' with over 2 million monthly visitors and ca. 12 million pagew visited as at March 2022.')
oldest_article = 2 # days
max_articles_per_feed = 30 # articles
auto_cleanup = True
language = 'ca'
encoding = 'utf-8'
use_embedded_content = False
no_stylesheets = True
remove_attributes = ['style', 'height', 'width']
ignore_duplicate_articles = {'url'}
feeds = [
('Ara', 'https://www.ara.cat/rss/'),
]

View File

@ -0,0 +1,25 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe
class ElNacional(BasicNewsRecipe):
title = 'ElNacional.cat'
description = (
'ElNacional.cat is an online Catalan-language newspaper edited in Barcelona.'
' It is ranked 1st by unique monthly visitors among Catalan newspapers,'
' with over 3.3 million monthly visitors as at March 2022.')
oldest_article = 2 # days
max_articles_per_feed = 30 # articles
auto_cleanup = True
language = 'ca'
__author__ = 'santboia'
encoding = 'utf-8'
use_embedded_content = False
no_stylesheets = True
remove_attributes = ['style', 'height', 'width']
ignore_duplicate_articles = {'url'}
feeds = [
('Portada', 'https://www.elnacional.cat/uploads/feeds/feed_ca.xml'),
]

27
recipes/news324.recipe Normal file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe
class news324cat(BasicNewsRecipe):
title = '324.cat'
description = (
'324.cat is the Catalan-language news portal by the public Catalan Corporation of Audiovisual Media (CCMA).'
' Its contents are based on reporting material by journalists of TV3 and Catalunya Radio,'
' the leading news sources in Catalan language.')
oldest_article = 2 # days
max_articles_per_feed = 30 # articles
auto_cleanup = True
language = 'ca'
__author__ = 'santboia'
encoding = 'utf-8'
use_embedded_content = False
no_stylesheets = True
remove_attributes = ['style', 'height', 'width']
ignore_duplicate_articles = {'url'}
feeds = [
('Portada',
'https://api.ccma.cat/noticies?_format=rss&origen=frontal&frontal=n324-portada-noticia&version=2.0'
),
]