home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / ieco.recipe < prev    next >
Text File  |  2011-09-09  |  2KB  |  41 lines

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. www.ieco.clarin.com
  7. '''
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class iEco(BasicNewsRecipe):
  11.     title                 = 'iEco Clarin'
  12.     __author__            = 'Darko Miletic'
  13.     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.'
  14.     oldest_article        = 7
  15.     max_articles_per_feed = 100
  16.     no_stylesheets        = True
  17.     use_embedded_content  = False
  18.     encoding              = 'utf-8'
  19.     publisher             = 'Grupo Clarin'
  20.     category              = 'news, economia, mercados, bolsa de valores, finanzas, empresas, negocios, empleos, emprendedores, marketinguniversidades, tecnologia, agronegocios, noticias, informacion'
  21.     language              = 'es_AR'
  22.     cover_url             = 'http://www.ieco.clarin.com/static2/images/Tapa-PDF.gif'
  23.     extra_css             = ' #bd{font-family: sans-serif} '
  24.  
  25.     conversion_options = {
  26.                           'comment'   : description
  27.                         , 'tags'      : category
  28.                         , 'publisher' : publisher
  29.                         , 'author'    : publisher
  30.                         , 'language'  : language
  31.                         }
  32.  
  33.     feeds = [(u'Articulos', u'http://www.ieco.clarin.com/rss/')]
  34.  
  35.     keep_only_tags = [dict(name='div', attrs={'id':'bd'})]
  36.     remove_tags = [dict(name=['object','link'])]
  37.  
  38.  
  39.     def print_version(self, url):
  40.         return url + '?print=1'
  41.