From 7834ef238b43b8f0aef1fecfaed037b7268e008e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Jun 2018 23:09:27 +0530 Subject: [PATCH] El Cronista by Darko Miletic Fixes #1774869 [New recipe for El Cronista](https://bugs.launchpad.net/calibre/+bug/1774869) --- recipes/elcronista-arg.recipe | 40 +++++++++++++++++++++++++++++++ recipes/icons/elcronista-arg.png | Bin 0 -> 482 bytes 2 files changed, 40 insertions(+) create mode 100644 recipes/elcronista-arg.recipe create mode 100644 recipes/icons/elcronista-arg.png diff --git a/recipes/elcronista-arg.recipe b/recipes/elcronista-arg.recipe new file mode 100644 index 0000000000..9cc1f908ae --- /dev/null +++ b/recipes/elcronista-arg.recipe @@ -0,0 +1,40 @@ +# -*- mode: python -*- +# -*- coding: utf-8 -*- + +__license__ = 'GPL v3' +__copyright__ = '2018, Darko Miletic ' +''' +www.cronista.com +''' +from calibre.web.feeds.news import BasicNewsRecipe + + +class ElCronistaArg(BasicNewsRecipe): + title = 'El Cronista' + __author__ = 'Darko Miletic' + description = ( + 'El Cronista Comercial es el Diario economico-politico mas valorado.' + ' Es la fuente mas confiable de informacion en temas de economia, finanzas y negocios.') + publisher = 'El Cronista' + category = 'news, politics, Argentina' + oldest_article = 2 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'es_AR' + remove_empty_feeds = True + publication_type = 'newsportal' + auto_cleanup = True + auto_cleanup_keep = '//div[@class="header-bottom"] | //h1 | //h2' + ignore_duplicate_articles = {'url'} + masthead_url = 'https://www.cronista.com/export/sites/diarioelcronista/arte/v2/lg_cronista_footer.png_665574830.png' + extra_css = """ + body{font-family: 'Source Sans Pro', sans-serif} + h1,h2,h3,h4{font-family: 'Libre Baskerville', serif} + """ + + conversion_options = { + 'comment': description, 'tags': category, 'publisher': publisher, 'language': language + } + + feeds = [(u'Articulos', u'https://www.cronista.com/rss/feed.xml')] diff --git a/recipes/icons/elcronista-arg.png b/recipes/icons/elcronista-arg.png new file mode 100644 index 0000000000000000000000000000000000000000..10df14fb85c9b4c8fbd93c1dadd64f2988df5886 GIT binary patch literal 482 zcmV<80UiE{P)Dlf6qEQ5400=dH6s3~WFU zl!So)K_HMy1Q8Uhl~r-OKul$`5L{siSGR588^|y>40aUg102>inDI0J0Lt4~qW3Zg48{{;DnuV5{hx)J>V_1_o=)T^}FhinAY4b~1y1HZw(0eip}h2edG YYgF2Bo5UW;o&W#<07*qoM6N<$f|V7`aR2}S literal 0 HcmV?d00001