From eead15b591d4ac2de5ada66cb1f37d3453ca2513 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 9 May 2022 12:10:01 +0530 Subject: [PATCH] Various Catalan language news sources by santboia --- recipes/ara.recipe | 24 ++++++++++++++++++++++++ recipes/el_nacional.recipe | 25 +++++++++++++++++++++++++ recipes/news324.recipe | 27 +++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 recipes/ara.recipe create mode 100644 recipes/el_nacional.recipe create mode 100644 recipes/news324.recipe diff --git a/recipes/ara.recipe b/recipes/ara.recipe new file mode 100644 index 0000000000..816fa188d2 --- /dev/null +++ b/recipes/ara.recipe @@ -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/'), + ] diff --git a/recipes/el_nacional.recipe b/recipes/el_nacional.recipe new file mode 100644 index 0000000000..d6af9ec18d --- /dev/null +++ b/recipes/el_nacional.recipe @@ -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'), + ] diff --git a/recipes/news324.recipe b/recipes/news324.recipe new file mode 100644 index 0000000000..004e94062d --- /dev/null +++ b/recipes/news324.recipe @@ -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' + ), + ]