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

  1. # -*- coding: utf-8 -*-
  2.  
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5. class NoticiasUnB(BasicNewsRecipe):
  6.     title                  = 'Noticias UnB'
  7.     __author__             = 'Diniz Bortolotto'
  8.     description            = 'Noticias da UnB'
  9.     oldest_article         = 5
  10.     max_articles_per_feed  = 20
  11.     category               = 'news, educational, Brazil'
  12.     language               = 'pt_BR'
  13.     publication_type       = 'newsportal'
  14.     use_embedded_content   = False
  15.     no_stylesheets         = True
  16.     remove_javascript      = True
  17.  
  18.     feeds                  = [(u'UnB Ag├¬ncia', u'http://www.unb.br/noticias/rss/noticias.rss')]
  19.  
  20.     reverse_article_order  = True
  21.  
  22.     def print_version(self, url):
  23.         return url.replace('http://', 'http://www.unb.br/noticias/print_email/imprimir.php?u=http://')
  24.  
  25.