From 94d7bce60410bfcd1f2097e90ad611b35a89d4c4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Dec 2016 08:29:28 +0530 Subject: [PATCH] Fix #1653099 [Remove following recipes](https://bugs.launchpad.net/calibre/+bug/1653099) --- recipes/elcronista.recipe | 56 ----------------------------- recipes/ieco.recipe | 35 ------------------ recipes/lacapital.recipe | 75 --------------------------------------- 3 files changed, 166 deletions(-) delete mode 100644 recipes/elcronista.recipe delete mode 100644 recipes/ieco.recipe delete mode 100644 recipes/lacapital.recipe diff --git a/recipes/elcronista.recipe b/recipes/elcronista.recipe deleted file mode 100644 index 7f5c2136b2..0000000000 --- a/recipes/elcronista.recipe +++ /dev/null @@ -1,56 +0,0 @@ -__license__ = 'GPL v3' -__copyright__ = '2008-2011, Darko Miletic ' -''' -www.cronista.com -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class Pagina12(BasicNewsRecipe): - title = 'El Cronista Comercial' - __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 enmarcados politicamente.' # noqa - publisher = 'Cronista.com' - category = 'news, politics, economy, finances, Argentina' - oldest_article = 2 - max_articles_per_feed = 200 - no_stylesheets = True - encoding = 'utf8' - use_embedded_content = False - language = 'es_AR' - remove_empty_feeds = True - publication_type = 'newspaper' - masthead_url = 'http://www.cronista.com/export/sites/diarioelcronista/arte/header-logo.gif' - extra_css = """ - body{font-family: Arial,Helvetica,sans-serif } - h2{font-family: Georgia,"Times New Roman",Times,serif } - img{margin-bottom: 0.4em; display:block} - .nom{font-weight: bold; vertical-align: baseline} - .autor-cfoto{border-bottom: 1px solid #D2D2D2; - border-top: 1px solid #D2D2D2; - display: inline-block; - margin: 0 10px 10px 0; - padding: 10px; - width: 210px} - .under{font-weight: bold} - .time{font-size: small} - """ - - conversion_options = { - 'comment': description, 'tags': category, 'publisher': publisher, 'language': language - } - - remove_tags = [ - dict(name=['meta', 'link', 'base', 'iframe', 'object', 'embed']), dict( - attrs={'class': ['user-tools', 'tabsmedia']}) - ] - remove_attributes = ['lang'] - remove_tags_before = dict(attrs={'class': 'top'}) - remove_tags_after = dict(attrs={'class': 'content-nota'}) - feeds = [(u'Ultimas noticias', u'http://www.cronista.com/rss.html')] - - def preprocess_html(self, soup): - for item in soup.findAll(style=True): - del item['style'] - return soup diff --git a/recipes/ieco.recipe b/recipes/ieco.recipe deleted file mode 100644 index 26536490a2..0000000000 --- a/recipes/ieco.recipe +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' -__copyright__ = '2009, Darko Miletic ' -''' -www.ieco.clarin.com -''' -from calibre.web.feeds.news import BasicNewsRecipe - - -class iEco(BasicNewsRecipe): - title = 'iEco Clarin' - __author__ = 'Darko Miletic' - description = 'iEco, el suplemento economico de Clarin. Las ultimas noticias de Empresas y Negocios, Mercados y Finanzas, Economia y Tecnologia de la Argentina y el mundo.' # noqa - oldest_article = 7 - max_articles_per_feed = 100 - no_stylesheets = True - use_embedded_content = False - encoding = 'utf-8' - publisher = 'Grupo Clarin' - language = 'es_AR' - cover_url = 'http://www.ieco.clarin.com/static2/images/Tapa-PDF.gif' - extra_css = ' #bd{font-family: sans-serif} ' - - conversion_options = { - 'comment': description, 'publisher': publisher, 'author': publisher, 'language': language - } - - feeds = [(u'Articulos', u'http://www.ieco.clarin.com/rss/')] - - keep_only_tags = [dict(name='div', attrs={'id': 'bd'})] - remove_tags = [dict(name=['object', 'link'])] - - def print_version(self, url): - return url + '?print=1' diff --git a/recipes/lacapital.recipe b/recipes/lacapital.recipe deleted file mode 100644 index 504ec63382..0000000000 --- a/recipes/lacapital.recipe +++ /dev/null @@ -1,75 +0,0 @@ -__license__ = 'GPL v3' -__copyright__ = '2013, Darko Miletic ' -''' -www.lacapital.com.ar -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class LaCapital(BasicNewsRecipe): - title = 'La Capital de Rosario' - __author__ = 'Darko Miletic' - description = 'Noticias, actualidad y toda la informacion de Rosario y la region' - publisher = 'Diario La Capital S. A.' - category = 'news, politics, Rosario, Santa Fe, Argentina' - oldest_article = 2 - max_articles_per_feed = 200 - no_stylesheets = True - encoding = 'utf8' - use_embedded_content = False - language = 'es_AR' - remove_empty_feeds = True - publication_type = 'newspaper' - masthead_url = 'http://www.lacapital.com.ar/system/modules/com.tfsla.diario.core/resources/images/logoLaCapital_noCom.png' - extra_css = """ - body{font-family: Georgia,"Times New Roman",Times,serif } - img{margin-bottom: 0.4em; display:block} - """ - - conversion_options = { - 'comment': description, 'tags': category, 'publisher': publisher, 'language': language - } - - keep_only_tags = [dict(attrs={'class': 'leer'})] - remove_tags_after = dict(attrs={'class': 'notaA'}) - remove_tags = [ - dict(name=['meta', 'link', 'iframe', 'object']), dict( - name='div', attrs={'class': ['herramientas', 'almargen', 'relacionadas']}) - ] - - feeds = [ - - (u'Portada', u'http://www.lacapital.com.ar/rss/home.xml'), - (u'La Ciudad', u'http://www.lacapital.com.ar/rss/laciudad.xml'), - (u'Politica', u'http://www.lacapital.com.ar/rss/politica.xml'), - (u'Economia', u'http://www.lacapital.com.ar/rss/economia.xml'), - (u'La Region', u'http://www.lacapital.com.ar/rss/laregion.xml'), - (u'Informacion General', u'http://www.lacapital.com.ar/rss/informaciongral.xml'), - (u'El Mundo', u'http://www.lacapital.com.ar/rss/elmundo.xml'), - (u'Opinion', u'http://www.lacapital.com.ar/rss/opinion.xml'), - (u'Cartas de lectores', u'http://www.lacapital.com.ar/rss/cartasdelectores.xml'), - (u'Escenario', u'http://www.lacapital.com.ar/rss/escenario.xml'), - (u'Policiales', u'http://www.lacapital.com.ar/rss/policiales.xml'), - (u'Ovacion', u'http://www.lacapital.com.ar/rss/ovacion.xml'), - (u'Turismo', u'http://www.lacapital.com.ar/rss/turismo.xml'), - (u'Economia', u'http://www.lacapital.com.ar/rss/economia.xml'), - (u'SeƱales', u'http://www.lacapital.com.ar/rss/senales.xml'), - (u'Educacion', u'http://www.lacapital.com.ar/rss/educacion.xml'), - (u'Estilo', u'http://www.lacapital.com.ar/rss/estilo.xml'), - (u'Salud', u'http://www.lacapital.com.ar/rss/salud.xml'), - (u'Tecnologia', u'http://www.lacapital.com.ar/rss/tecnologia.xml') - ] - - def get_cover_url(self): - soup = self.index_to_soup( - 'http://www.lacapital.com.ar/impresa/tapa.html') - for image in soup.findAll('img', alt=True): - if image['alt'].startswith('Tapa de papel'): - return image['src'] - return None - - def preprocess_html(self, soup): - for item in soup.findAll(style=True): - del item['style'] - return soup