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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. blog.stackoverflow.com
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class StackOverflowBlog(BasicNewsRecipe):
  12.     title                 = 'Stack Overflow - Blog'
  13.     __author__            = 'Darko Miletic'
  14.     description           = 'a programming community exploit'
  15.     category              = 'blog, programming'
  16.     publisher             = 'StackOverflow team'
  17.     oldest_article        = 30
  18.     language = 'en'
  19.  
  20.     max_articles_per_feed = 100
  21.     no_stylesheets        = True
  22.     use_embedded_content  = True
  23.     encoding              = 'utf-8'
  24.  
  25.     html2lrf_options = [
  26.                           '--comment'  , description
  27.                         , '--category' , category
  28.                         , '--publisher', publisher
  29.                         ]
  30.  
  31.     html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
  32.  
  33.     feeds = [(u'Articles', u'http://blog.stackoverflow.com/feed/' )]
  34.  
  35.