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

  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. class FanGraphs(BasicNewsRecipe):
  12.     title = u'FanGraphs'
  13.     oldest_article = 21
  14.     max_articles_per_feed = 100
  15.     no_stylesheets = True
  16.     #delay = 1
  17.     use_embedded_content = False
  18.     encoding = 'utf8'
  19.     publisher = 'Fangraphs'
  20.     category = 'Baseball'
  21.     language = 'en'
  22.     publication_type = 'Blog'
  23.  
  24.     description = 'Baseball statistical analysis, graphs, and projections.'
  25.     __author__ = 'David Appelman'
  26.     cover_url = 'http://bit.ly/g0BTdQ'
  27.  
  28.     feeds = [
  29.     (u'Fangraphs', u'http://feeds.feedburner.com/FanGraphs?format=xml'),
  30.     (u'Rotographs', u'http://www.wizardrss.com/feed/feeds.feedburner.com/RotoGraphs?format=xml'),
  31.     (u'Community', u'http://www.wizardrss.com/feed/www.fangraphs.com/community/?feed=rss2'),
  32.     (u'NotGraphs', u'http://www.wizardrss.com/feed/www.fangraphs.com/not/?feed=rss2')]
  33.  
  34.     extra_css = '''
  35.                     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  36.                     h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
  37.                     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  38.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  39. '''
  40.