| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 4 |
|
| 5 |
|
| 6 |
class news324cat(BasicNewsRecipe): |
| 7 |
title = '324.cat' |
| 8 |
description = ( |
| 9 |
'324.cat is the Catalan-language news portal by the public Catalan Corporation of Audiovisual Media (CCMA).' |
| 10 |
' Its contents are based on reporting material by journalists of TV3 and Catalunya Radio,' |
| 11 |
' the leading news sources in Catalan language.' |
| 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://api.ccma.cat/noticies?_format=rss&origen=frontal&frontal=n324-portada-noticia&version=2.0'), |
| 26 |
] |