diff --git a/resources/images/news/elcomercio.png b/resources/images/news/elcomercio.png new file mode 100644 index 0000000000..df484860dd Binary files /dev/null and b/resources/images/news/elcomercio.png differ diff --git a/resources/recipes/elcomercio.recipe b/resources/recipes/elcomercio.recipe new file mode 100644 index 0000000000..37733bda8b --- /dev/null +++ b/resources/recipes/elcomercio.recipe @@ -0,0 +1,38 @@ + +__license__ = 'GPL v3' +__copyright__ = '2010, Darko Miletic ' +''' +elcomercio.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class ElComercio(BasicNewsRecipe): + title = 'El Comercio ' + __author__ = 'Darko Miletic' + description = "Gizmodo, the gadget guide. So much in love with shiny new toys, it's unnatural." + publisher = 'GRUPO EL COMERCIO C.A.' + category = 'news, Ecuador, politics' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = True + language = 'es' + masthead_url = 'http://ww1.elcomercio.com/nv_images/headers/EC/logo_new_08.gif' + extra_css = ' body{font-family: Arial,Verdana,sans-serif} img{margin-bottom: 1em} ' + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + + feeds = [(u'Articles', u'http://ww1.elcomercio.com/rss/titulares1.xml')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) +