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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. izvestia.ru
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class Izvestia(BasicNewsRecipe):
  10.     title                 = 'Izvestia'
  11.     __author__            = 'Darko Miletic'
  12.     description           = 'News from Russia'
  13.     publisher             = 'Izvestia'
  14.     category              = 'news, politics, Russia'
  15.     oldest_article        = 5
  16.     max_articles_per_feed = 100
  17.     no_stylesheets        = True
  18.     use_embedded_content  = False
  19.     encoding              = 'cp1251'
  20.     language              = 'ru'
  21.     publication_type      = 'newspaper'
  22.     masthead_url          = 'http://images.izvestia.ru/izv/sys/logo.gif'
  23.     extra_css             = ' @font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} body{font-family: Verdana,Arial,Helvetica,sans1,sans-serif} '
  24.     keep_only_tags     = [dict(name='div', attrs={'class':'newsFull'})]
  25.     remove_tags        = [dict(name=['iframe','object','img','link','base'])]
  26.     remove_tags_before = dict(name='h1', attrs={'class':'statya'})
  27.  
  28.     feeds       = [(u'Daily edition', u'http://rss.feedsportal.com/c/32171/f/424076/index.rss')]
  29.