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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Vadim Dyadkin dyadkin@lns.pnpi.spb.ru'
  3.  
  4. from calibre.web.feeds.news import BasicNewsRecipe
  5.  
  6. class Trv(BasicNewsRecipe):
  7.  
  8.  
  9.      title          = u'\u0422\u0440\u043e\u0438\u0446\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442'
  10.      language = 'ru'
  11.      __author__ = 'Vadim Dyadkin'
  12.      oldest_article = 30
  13.      max_articles_per_feed = 100
  14.      recursion = 4
  15.      no_stylesheets = True
  16.      simultaneous_downloads = 1
  17.  
  18.      keep_only_tags = [dict(name='h1'),
  19.                        dict(name='div', attrs={'id' : 'content'})
  20.                       ]
  21.  
  22.      remove_tags = [dict(name='div', attrs={'class' : ['dateright',
  23.  'postmeta', 'adsense-post', 'comments', 'nocomments', 'widgetarea',
  24.  'breadcrumb']}), {'id' : ['sidebar', 'l_sidebar', 'r_sidebar', 'footer',
  25.  'homepageright0']}, {'style' : 'clear:both;'},
  26.                     dict(name='ul'),
  27.                     dict(name='h2')
  28.                  ]
  29.  
  30.      feeds          = [(u'\u0422\u0440\u043e\u0438\u0446\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442',
  31.                          u'http://trv-science.ru/feed/')]
  32.