mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Various Catalan language news sources by santboia
This commit is contained in:
parent
a2823eceed
commit
eead15b591
24
recipes/ara.recipe
Normal file
24
recipes/ara.recipe
Normal 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/'),
|
||||||
|
]
|
25
recipes/el_nacional.recipe
Normal file
25
recipes/el_nacional.recipe
Normal 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
27
recipes/news324.recipe
Normal 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'
|
||||||
|
),
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user