mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-30 18:22:25 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| __license__   = 'GPL v3'
 | |
| __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
 | |
| '''
 | |
| blogs.msdn.com/oldnewthing
 | |
| '''
 | |
| 
 | |
| from calibre.web.feeds.news import BasicNewsRecipe
 | |
| 
 | |
| class OldNewThing(BasicNewsRecipe):
 | |
|     title                 = 'The Old New Thing'
 | |
|     __author__            = 'Darko Miletic'
 | |
|     description           = 'Famous blog by Windows guru Raymond Chen'
 | |
|     oldest_article        = 15
 | |
|     max_articles_per_feed = 100
 | |
|     language              = 'en'
 | |
|     encoding              = 'utf-8'
 | |
|     no_stylesheets        = True
 | |
|     use_embedded_content  = False
 | |
|     publication_type      = 'blog'
 | |
|     extra_css             = ' body{font-family: Verdana,Arial,Helvetica,sans-serif} .code{font-family: "Lucida Console",monospace} '
 | |
| 
 | |
|     conversion_options = {
 | |
|                           'comment'  : description
 | |
|                         , 'tags'     : 'blog, windows, microsoft, programming'
 | |
|                         , 'publisher': 'Raymond Chen'
 | |
|                         , 'language' : language
 | |
|                         }
 | |
| 
 | |
|     remove_attributes = ['width','height']
 | |
|     keep_only_tags    = [dict(attrs={'class':'full-post'})]
 | |
|     remove_tags       = [dict(attrs={'class':['post-attributes','post-tags','post-actions']})]
 | |
|     feeds = [(u'Posts', u'http://blogs.msdn.com/oldnewthing/rss.xml')]
 | |
| 
 |