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

  1. import re
  2. from calibre.web.feeds.news import BasicNewsRecipe
  3.  
  4. class VioMundo(BasicNewsRecipe):
  5.     title                  = 'Blog VioMundo'
  6.     __author__             = 'Diniz Bortolotto'
  7.     description            = 'Posts do Blog VioMundo'
  8.     publisher              = 'Luiz Carlos Azenha'
  9.     oldest_article         = 5
  10.     max_articles_per_feed  = 20
  11.     category               = 'news, politics, Brazil'
  12.     language               = 'pt_BR'
  13.     publication_type       = 'news and politics portal'
  14.     use_embedded_content   = False
  15.     no_stylesheets         = True
  16.     remove_javascript      = True
  17.  
  18.     feeds                  = [(u'Blog VioMundo', u'http://www.viomundo.com.br/feed')]
  19.  
  20.     reverse_article_order  = True
  21.  
  22.     def print_version(self, url):
  23.         return url + '/print/'
  24.  
  25.     remove_tags_after      = dict(id='BlogContent')
  26.  
  27.     preprocess_regexps     = [
  28.                               (re.compile(r'\|\ <u>.*</p>'),
  29.                               lambda match: '</p>')
  30.                              ]
  31.