Debian Codegraph @

recipes/ciperchile.recipe

raw
1 __license__ = 'GPL v3'
2 __copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>'
3 '''
4 ciperchile.cl
5 '''
6
7 from calibre.web.feeds.news import BasicNewsRecipe
8
9
10 class CiperChile(BasicNewsRecipe):
11 title = 'CIPER Chile'
12 __author__ = 'Darko Miletic'
13 description = 'El Centro de Investigacion e Informacion Periodistica (CIPER) es una institucion independiente que desarrolla reportajes de investigacion de acuerdo a principios de maxima calidad e integridad profesional. Para lograr dicho objetivo, los profesionales de CIPER incorporan a las tecnicas propias del reporteo el uso sistematico de las leyes chilenas que norman el libre acceso a la informacion, de manera que los documentos que se obtengan por esta via esten puestos a disposicion del publico sin restricciones.' # noqa: E501
14 publisher = 'CIPER'
15 category = 'news, politics, Chile'
16 oldest_article = 15
17 max_articles_per_feed = 200
18 no_stylesheets = True
19 encoding = 'utf8'
20 use_embedded_content = False
21 language = 'es_CL'
22 auto_cleanup = False
23 remove_empty_feeds = True
24 publication_type = 'blog'
25 masthead_url = 'https://www.ciperchile.cl/wp-content/themes/syms/assets/img/ciper_logo_full_dark.svg'
26 extra_css = '''
27 body{font-family: Arial,sans-serif}
28 .excerpt{font-family: Georgia,"Times New Roman",Times,serif; font-style: italic; font-size: 1.25em}
29 .author{font-family: Georgia,"Times New Roman",Times,serif; font-style: italic; font-size: small}
30 .date{font-family: Georgia,"Times New Roman",Times,serif; font-size: small; color: grey}
31 .epigrafe{font-size: small; color: grey}
32 img{margin-bottom: 0.4em; display:block}
33 '''
34
35 conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language}
36
37 remove_tags = [dict(name=['meta', 'link']), dict(attrs={'class': ['articleSharingTools', 'articleNav']})]
38 remove_attributes = ['lang']
39 remove_tags_before = dict(name='p', attrs={'class': 'epigrafe'})
40 remove_tags_after = dict(name='div', attrs={'class': 'articleBody'})
41 keep_only_tags = [dict(name='div', attrs={'class': 'articleElements'})]
42
43 feeds = [
44 ('Noticias de portada', 'https://www.ciperchile.cl/feed'),
45 ]