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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. elcomercio.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class ElComercio(BasicNewsRecipe):
  11.     title                 = 'El Comercio '
  12.     __author__            = 'Darko Miletic'
  13.     description           = "Gizmodo, the gadget guide. So much in love with shiny new toys, it's unnatural."
  14.     publisher             = 'GRUPO EL COMERCIO C.A.'
  15.     category              = 'news, Ecuador, politics'
  16.     oldest_article        = 2
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     encoding              = 'utf-8'
  20.     use_embedded_content  = True
  21.     language              = 'es_EC'
  22.     masthead_url          = 'http://ww1.elcomercio.com/nv_images/headers/EC/logo_new_08.gif'
  23.     extra_css             = ' body{font-family: Arial,Verdana,sans-serif} img{margin-bottom: 1em} '
  24.  
  25.     conversion_options = {
  26.                           'comment'   : description
  27.                         , 'tags'      : category
  28.                         , 'publisher' : publisher
  29.                         , 'language'  : language
  30.                         }
  31.  
  32.     remove_attributes = ['width','height']
  33.  
  34.     feeds = [(u'Articles', u'http://ww1.elcomercio.com/rss/titulares1.xml')]
  35.  
  36.     def preprocess_html(self, soup):
  37.         return self.adeify_images(soup)
  38.  
  39.