mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Updated Freakonomics Blog
This commit is contained in:
		
							parent
							
								
									ad64823512
								
							
						
					
					
						commit
						3b1b08188b
					
				@ -9,14 +9,20 @@ class Freakonomics(BasicNewsRecipe):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    title = 'Freakonomics Blog'
 | 
					    title = 'Freakonomics Blog'
 | 
				
			||||||
    description = 'The Hidden side of everything'
 | 
					    description = 'The Hidden side of everything'
 | 
				
			||||||
    __author__ = 'Kovid Goyal'
 | 
					    __author__ = 'Starson17'
 | 
				
			||||||
    language = 'en'
 | 
					    language = 'en'
 | 
				
			||||||
 | 
					    cover_url           = 'http://ilkerugur.files.wordpress.com/2009/04/freakonomics.jpg'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    feeds = [('Blog', 'http://feeds.feedburner.com/freakonomicsblog')]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    feeds = [('Blog', 'http://freakonomics.blogs.nytimes.com/feed/atom/')]
 | 
					    keep_only_tags     = [dict(name='div', attrs={'id':'header'}),
 | 
				
			||||||
    
 | 
					                          dict(name='h1'),
 | 
				
			||||||
    def get_article_url(self, article):
 | 
					                          dict(name='h2'),
 | 
				
			||||||
        return article.get('feedburner_origlink', None)
 | 
					                          dict(name='div', attrs={'class':'entry-content'}),
 | 
				
			||||||
        
 | 
					                          ]
 | 
				
			||||||
    def print_version(self, url):
 | 
					    extra_css = '''
 | 
				
			||||||
        return url + '?pagemode=print'
 | 
					                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
 | 
				
			||||||
 | 
					                    h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
 | 
				
			||||||
 | 
					                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
 | 
				
			||||||
 | 
					                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
 | 
				
			||||||
 | 
							'''
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user