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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. blogs.msdn.com/oldnewthing
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class OldNewThing(BasicNewsRecipe):
  11.     title                 = 'The Old New Thing'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'Famous blog by Windows guru Raymond Chen'
  14.     oldest_article        = 15
  15.     max_articles_per_feed = 100
  16.     language              = 'en'
  17.     encoding              = 'utf-8'
  18.     no_stylesheets        = True
  19.     use_embedded_content  = False
  20.     publication_type      = 'blog'
  21.     extra_css             = ' body{font-family: Verdana,Arial,Helvetica,sans-serif} .code{font-family: "Lucida Console",monospace} '
  22.  
  23.     conversion_options = {
  24.                           'comment'  : description
  25.                         , 'tags'     : 'blog, windows, microsoft, programming'
  26.                         , 'publisher': 'Raymond Chen'
  27.                         , 'language' : language
  28.                         }
  29.  
  30.     remove_attributes = ['width','height']
  31.     keep_only_tags    = [dict(attrs={'class':'full-post'})]
  32.     remove_tags       = [dict(attrs={'class':['post-attributes','post-tags','post-actions']})]
  33.     feeds = [(u'Posts', u'http://blogs.msdn.com/oldnewthing/rss.xml')]
  34.  
  35.