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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. sp.rian.ru
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class Ria_esp(BasicNewsRecipe):
  11.     title                 = 'Ria Novosti'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'Noticias desde Russia en Castellano'
  14.     language              = 'es'
  15.     publisher             = 'sp.rian.ru'
  16.     category              = 'news, politics, Russia'
  17.     oldest_article        = 3
  18.     max_articles_per_feed = 100
  19.     no_stylesheets        = True
  20.     use_embedded_content  = False
  21.     encoding              = 'utf-8'
  22.  
  23.     conversion_options = {
  24.                           'comment'          : description
  25.                         , 'tags'             : category
  26.                         , 'publisher'        : publisher
  27.                         , 'language'         : language
  28.                         }
  29.  
  30.  
  31.     keep_only_tags = [dict(name='div', attrs={'class':['mainnewsrubric','titleblock','mainnewstxt']})]
  32.     remove_tags = [dict(name=['object','link','iframe','base'])]
  33.  
  34.  
  35.     feeds = [(u'Noticias', u'http://rss.feedsportal.com/c/860/fe.ed/sp.rian.ru/export/rss2/index.xml')]
  36.  
  37.  
  38.