home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3795 < prev    next >
Encoding:
Text File  |  2010-01-30  |  2.0 KB  |  51 lines

  1. #!/usr/bin/env  python
  2. __license__    = 'GPL v3'
  3. __author__     = 'Lorenzo Vigentini'
  4. __copyright__   = '2009, Lorenzo Vigentini <l.vigentini at gmail.com>'
  5. __description__ = 'Daily newspaper from Aragon'
  6. __version__     = 'v1.01'
  7. __date__        = '30, January 2010'
  8.  
  9. '''
  10. http://www.heraldo.es/
  11. '''
  12.  
  13. from calibre.web.feeds.news import BasicNewsRecipe
  14.  
  15. class heraldo(BasicNewsRecipe):
  16.     author        = 'Lorenzo Vigentini'
  17.     description   = 'Daily newspaper from Aragon'
  18.  
  19.     cover_url      = 'http://www.heraldo.es/MODULOS/global/publico/interfaces/img/logo.gif'
  20.     title          = u'Heraldo de Aragon'
  21.     publisher      = 'OJD Nielsen'
  22.     category       = 'News, politics, culture, economy, general interest'
  23.  
  24.     language       = 'es'
  25.     timefmt        = '[%a, %d %b, %Y]'
  26.  
  27.     oldest_article = 1
  28.     max_articles_per_feed = 25
  29.  
  30.     use_embedded_content  = False
  31.     recursion             = 10
  32.  
  33.     remove_javascript = True
  34.     no_stylesheets = True
  35.  
  36.     keep_only_tags = [
  37.                         dict(name='div', attrs={'class':['titularNoticiaNN','textoGrisVerdanaContenidos']})
  38.                     ]
  39.  
  40.     feeds          = [
  41.                         (u'Portadas ', u'http://www.heraldo.es/index.php/mod.portadas/mem.rss')
  42.                     ]
  43.     extra_css = '''
  44.                     .articledate {color: gray;font-family: monospace;}
  45.                     .articledescription {display: block;font-family: sans;font-size: 0.7em; text-indent: 0;}
  46.                     .firma {color: #666;display: block;font-family: verdana, arial, helvetica;font-size: 1em;margin-bottom: 8px;}
  47.                     .textoGrisVerdanaContenidos {color: #56595c;display: block;font-family: Verdana;font-size: 1.28571em;padding-bottom: 10px}
  48.                     .titularNoticiaNN {display: block;padding-bottom: 10px;padding-left: 0;padding-right: 0;padding-top: 4px}
  49.                     .titulo {color: #003066;font-family: Tahoma;font-size: 1.92857em;font-weight: bold;line-height: 1.2em}
  50.                     '''
  51.