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

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __author__    = 'Gabriele Marini'
  4. __copyright__ = 'Gabriele Marini'
  5. __description__ = 'Punto Informatico'
  6.  
  7. '''
  8. http://www.punto-informatico.it/
  9. '''
  10.  
  11. from calibre.web.feeds.news import BasicNewsRecipe
  12.  
  13.  
  14. class PuntoInformatico(BasicNewsRecipe):
  15.     __author__        = 'Gabriele Marini'
  16.     description   = 'Punto Informatico: Internet dal 1996'
  17.  
  18.     cover_url      = 'http://punto-informatico.it/images/logo_8bit.png'
  19.     title          = u'Punto Informatico '
  20.     publisher      = 'italiaNews High Tech'
  21.     category       = 'News, Information Tecnology'
  22.  
  23.     language       = 'it'
  24.     timefmt        = '[%a, %d %b, %Y]'
  25.  
  26.     oldest_article = 15
  27.     max_articles_per_feed = 50
  28.     use_embedded_content  = False
  29.  
  30.     remove_javascript  = True
  31.     no_stylesheets     = True
  32.     keep_only_tags     = [dict(name='div', attrs={'class':'box'})]
  33.     remove_tags        = [dict(name='div',attrs={'class':'boxadv'})]
  34.     def get_article_url(self, article):
  35.         return article.get('id', article.get('guid', None))
  36.  
  37.     feeds              = [(u'Punto Informatico',u'http://feeds.punto-informatico.it/c/32288/f/438866/index.rss')]
  38.  
  39.