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

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Brendan Sleight <bms.calibre at barwap.com>'
  4. '''
  5. hola.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class Hackaday(BasicNewsRecipe):
  11.     title                 = u'Hola'
  12.     __author__            = 'bmsleight'
  13.     description           = 'diario de actualidad, moda y belleza.'
  14.     oldest_article        = 10
  15.     max_articles_per_feed = 100
  16.     no_stylesheets        = True
  17.     language              = 'es'
  18.  
  19.     use_embedded_content  = False
  20.  
  21.     keep_only_tags      = [
  22.                            dict(name='div', attrs={'id':'cuerpo'})
  23.                           ]
  24.  
  25.     feeds               = [
  26.                          (u'Famosos'        , u'http://www.hola.com/famosos/rss.xml'           ),
  27.                          (u'Realeza'        , u'http://www.hola.com/realeza/rss.xml'           ),
  28.                          (u'Cine'           , u'http://www.hola.com/cine/rss.xml'              ),
  29.                          (u'M├║sica'         , u'http://www.hola.com/musica/rss.xml'            ),
  30.                          (u'Moda y modelos' , u'http://www.hola.com/moda/portada/rss.xml'      ),
  31.                          (u'Belleza y salud', u'http://www.hola.com/belleza/portada/rss.xml'   ),
  32.                          (u'Ni├▒os'          , u'http://www.hola.com/ninos/rss.xml'             ),
  33.                          (u'Todas las noticias', u'http://int2.hola.com/app/feeds/rss_hola.php'),
  34.                          ]
  35.  
  36.     def get_article_url(self, article):
  37.         url = article.get('guid', None)
  38.         return url
  39.