mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 10:37:00 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| __license__ = 'GPL v3'
 | |
| __copyright__ = '2011 zotzot'
 | |
| __docformat__ = 'PEP8'
 | |
| '''
 | |
| www.fangraphs.com
 | |
| '''
 | |
| 
 | |
| from calibre.web.feeds.news import BasicNewsRecipe
 | |
| 
 | |
| 
 | |
| class FanGraphs(BasicNewsRecipe):
 | |
|     title = u'FanGraphs'
 | |
|     oldest_article = 21
 | |
|     max_articles_per_feed = 100
 | |
|     no_stylesheets = True
 | |
|     use_embedded_content = False
 | |
|     encoding = 'utf8'
 | |
|     publisher = 'Fangraphs'
 | |
|     category = 'Baseball'
 | |
|     language = 'en'
 | |
|     publication_type = 'Blog'
 | |
|     auto_cleanup = True
 | |
| 
 | |
|     description = 'Baseball statistical analysis, graphs, and projections.'
 | |
|     __author__ = 'David Appelman'
 | |
|     cover_url = 'http://bit.ly/g0BTdQ'
 | |
| 
 | |
|     feeds = [
 | |
|         (u'Fangraphs', u'http://feeds.feedburner.com/FanGraphs?format=xml'),
 | |
|         (u'Rotographs', u'http://feeds.feedburner.com/RotoGraphs?format=xml'),
 | |
|         (u'NotGraphs', u'http://feeds.feedburner.com/NotGraphs?format=xml')]
 | |
| 
 | |
|     extra_css = '''
 | |
|                     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;}
 | |
| '''
 |