Debian Codegraph @

recipes/fan_graphs.recipe

raw
1 #!/usr/bin/env python
2 __license__ = 'GPL v3'
3 __copyright__ = '2011 zotzot'
4 __docformat__ = 'PEP8'
5 '''
6 www.fangraphs.com
7 '''
8
9 from calibre.web.feeds.news import BasicNewsRecipe
10
11
12 class FanGraphs(BasicNewsRecipe):
13 title = 'FanGraphs'
14 oldest_article = 21
15 max_articles_per_feed = 100
16 no_stylesheets = True
17 use_embedded_content = False
18 encoding = 'utf8'
19 publisher = 'Fangraphs'
20 category = 'Baseball'
21 language = 'en'
22 publication_type = 'Blog'
23 auto_cleanup = True
24
25 description = 'Baseball statistical analysis, graphs, and projections.'
26 __author__ = 'David Appelman'
27 cover_url = 'http://bit.ly/g0BTdQ'
28
29 feeds = [
30 ('Fangraphs', 'http://feeds.feedburner.com/FanGraphs?format=xml'),
31 ('Rotographs', 'http://feeds.feedburner.com/RotoGraphs?format=xml'),
32 ('NotGraphs', 'http://feeds.feedburner.com/NotGraphs?format=xml'),
33 ]
34
35 extra_css = '''
36 h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
37 h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
38 p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
39 body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
40 '''