calibre/recipes/ieco.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

36 lines
1.1 KiB
Python

#!/usr/bin/env python2
__license__ = 'GPL v3'
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
'''
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'