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

  1. # -*- coding: utf-8 -*-
  2.  
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5. class BrasilDeFato(BasicNewsRecipe):
  6.     news                  = True
  7.     title          = u'Brasil de Fato'
  8.     __author__            = 'Alex Mitrani'
  9.     description           = u'Uma vis├úo popular do Brasil e do mundo.'
  10.     publisher             = u'SOCIEDADE EDITORIAL BRASIL DE FATO'
  11.     category              = 'news, politics, Brazil, rss, Portuguese'
  12.     oldest_article = 10
  13.     max_articles_per_feed = 100
  14.     summary_length        = 1000
  15.     language              = 'pt_BR'
  16.  
  17.     remove_javascript     = True
  18.     no_stylesheets        = True
  19.     use_embedded_content  = False
  20.     remove_empty_feeds    = True
  21.     masthead_url          = 'http://www.brasildefato.com.br/sites/default/files/zeropoint_logo.jpg'
  22.     keep_only_tags = [dict(name='div', attrs={'id':'main'})]
  23.     remove_tags = [dict(name='div', attrs={'class':'links'})]
  24.     remove_tags_after = [dict(name='div', attrs={'class':'links'})]
  25.  
  26.     feeds          = [(u'Nacional', u'http://www.brasildefato.com.br/rss_nacional')
  27.     ,(u'Internacional', u'http://www.brasildefato.com.br/rss_internacional')
  28.     ,(u'Entrevista', u'http://www.brasildefato.com.br/rss_entrevista')
  29.     ,(u'Cultura', u'http://www.brasildefato.com.br/rss_cultura')
  30.     ,(u'An├ílise', u'http://www.brasildefato.com.br/rss_analise')
  31.     ]
  32.