home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3664 < prev    next >
Encoding:
Text File  |  2009-10-14  |  1.3 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.codinghorror.com/blog/
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class CodingHorror(BasicNewsRecipe):
  12.     title                 = 'Coding Horror'
  13.     __author__            = 'Darko Miletic'
  14.     description           = 'programming and human factors - Jeff Atwood'
  15.     category              = 'blog, programming'
  16.     publisher             = 'Jeff Atwood'
  17.     language = 'en'
  18.  
  19.     author                = 'Jeff Atwood'
  20.     oldest_article        = 30
  21.     max_articles_per_feed = 100
  22.     no_stylesheets        = True
  23.     use_embedded_content  = True
  24.     encoding              = 'cp1252'
  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/codinghorror' )]
  41.  
  42.