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

  1. #!/usr/bin/env  python
  2.  
  3. __license__    = 'GPL v3'
  4. __author__ = 'Mori'
  5. __version__ = 'v. 0.1'
  6. '''
  7. olgierd.bblog.pl
  8. '''
  9.  
  10. from calibre.web.feeds.news import BasicNewsRecipe
  11.  
  12. class LegeArtisRecipe(BasicNewsRecipe):
  13.     __author__ = 'Mori'
  14.     language = 'pl'
  15.  
  16.     title = u'Lege Artis'
  17.     publisher = u'Olgierd Rudak'
  18.     description = u'Wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzicie si\u0119 zapyta\u0107'
  19.  
  20.     max_articles_per_feed = 100
  21.     
  22.     no_stylesheets = True
  23.     remove_javascript = True
  24.     
  25.     extra_css = '''
  26.         img{clear: both;}
  27.     '''
  28.     
  29.     feeds = [
  30.         (u'Lege Artis', u'http://olgierd.bblog.pl/rss/rss20.xml')
  31.     ]
  32.     
  33.     keep_only_tags = [
  34.         dict(name = 'div', attrs = {'class' : 'post_title'}),
  35.         dict(name = 'div', attrs = {'class' : 'post_date'}),
  36.         dict(name = 'div', attrs = {'class' : 'post_content'})
  37.     ]
  38.     
  39.     remove_tags = [
  40.         dict(name = 'div', attrs = {'id' : 'bb_tools'}),
  41.         dict(name = 'div', attrs = {'class' : 'post_comments'}),
  42.         dict(name = 'object', attrs = {})
  43.     ]
  44.