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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. www.hanselman.com/blog/
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class ScottHanselman(BasicNewsRecipe):
  12.     title                 = "Scott Hanselman's Computer Zen"
  13.     __author__            = 'Darko Miletic'
  14.     description           = "Scott Hanselman's Thoughts on Programming, Technology, Fatherhood, and Life"
  15.     category              = "Scott, Computer, Zen, .NET, C#, Hanselman, Scott, Weblog, Diabetes, Portland, Zimbabwe, ComputerZen.com - Scott Hanselman's Musings"
  16.     publisher             = 'Scott Hanselman'
  17.     author                = 'Scott Hanselman'
  18.     language = 'en'
  19.  
  20.     oldest_article        = 30
  21.     max_articles_per_feed = 100
  22.     no_stylesheets        = True
  23.     use_embedded_content  = True
  24.     encoding              = 'utf-8'
  25.  
  26.     html2lrf_options = [
  27.                           '--comment'  , description
  28.                         , '--category' , category
  29.                         , '--publisher', publisher
  30.                         , '--author'   , author
  31.                         ]
  32.  
  33.     html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"'
  34.  
  35.     remove_tags = [
  36.                      dict(name=['object','link'])
  37.                     ,dict(name='div',attrs={'class':'feedflare'})
  38.                   ]
  39.  
  40.     feeds = [(u'Articles', u'http://feeds2.feedburner.com/ScottHanselman' )]
  41.  
  42.