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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. www.aif.ru
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class AIF_ru(BasicNewsRecipe):
  10.     title                 = 'Arguments & Facts - Russian'
  11.     __author__            = 'Darko Miletic'
  12.     description           = 'News from Russia'
  13.     publisher             = 'AIF'
  14.     category              = 'news, politics, Russia'
  15.     oldest_article        = 2
  16.     max_articles_per_feed = 100
  17.     no_stylesheets        = True
  18.     use_embedded_content  = False
  19.     encoding              = 'cp1251'
  20.     language              = 'ru'
  21.     publication_type      = 'magazine'
  22.     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} '
  23.     keep_only_tags     = [dict(name='div',attrs={'id':'inner'})]
  24.     remove_tags        = [
  25.                             dict(name=['iframe','object','link','base','input','img'])
  26.                            ,dict(name='div',attrs={'class':'photo'})
  27.                            ,dict(name='p',attrs={'class':'resizefont'})
  28.                          ]
  29.  
  30.     feeds       = [(u'News', u'http://www.aif.ru/rss/all.php')]
  31.  
  32.