| 1 |
# -*- mode: python -*- |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
|
| 4 |
__license__ = 'GPL v3' |
| 5 |
__copyright__ = '2018, Darko Miletic <darko.miletic at gmail.com>' |
| 6 |
''' |
| 7 |
www.cronista.com |
| 8 |
''' |
| 9 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 10 |
|
| 11 |
|
| 12 |
class ElCronistaArg(BasicNewsRecipe): |
| 13 |
title = 'El Cronista' |
| 14 |
__author__ = 'Darko Miletic' |
| 15 |
description = ( |
| 16 |
'El Cronista Comercial es el Diario economico-politico mas valorado.' |
| 17 |
' Es la fuente mas confiable de informacion en temas de economia, finanzas y negocios.' |
| 18 |
) |
| 19 |
publisher = 'El Cronista' |
| 20 |
category = 'news, politics, Argentina' |
| 21 |
oldest_article = 2 |
| 22 |
no_stylesheets = True |
| 23 |
encoding = 'utf8' |
| 24 |
use_embedded_content = False |
| 25 |
language = 'es_AR' |
| 26 |
remove_empty_feeds = True |
| 27 |
publication_type = 'newsportal' |
| 28 |
auto_cleanup = True |
| 29 |
auto_cleanup_keep = '//div[@class="header-bottom"] | //h1 | //h2' |
| 30 |
ignore_duplicate_articles = {'url'} |
| 31 |
masthead_url = 'https://www.cronista.com/export/sites/diarioelcronista/arte/v2/lg_cronista_footer.png_665574830.png' |
| 32 |
extra_css = ''' |
| 33 |
body{font-family: 'Source Sans Pro', sans-serif} |
| 34 |
h1,h2,h3,h4{font-family: 'Libre Baskerville', serif} |
| 35 |
''' |
| 36 |
|
| 37 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 38 |
|
| 39 |
feeds = [('Articulos', 'https://www.cronista.com/rss/feed.xml')] |