#!/usr/bin/env python2 # encoding: utf-8 from __future__ import with_statement __license__ = 'GPL 3' __copyright__ = 'zotzo' __docformat__ = 'restructuredtext en' """ http://fifthdown.blogs.nytimes.com/ http://offthedribble.blogs.nytimes.com/ http://thequad.blogs.nytimes.com/ http://slapshot.blogs.nytimes.com/ http://goal.blogs.nytimes.com/ http://bats.blogs.nytimes.com/ http://straightsets.blogs.nytimes.com/ http://formulaone.blogs.nytimes.com/ http://onpar.blogs.nytimes.com/ """ from calibre.web.feeds.news import BasicNewsRecipe class NYTimesSports(BasicNewsRecipe): title = 'New York Times Sports Beat' language = 'en' __author__ = 'rylsfan' description = 'Indepth sports from the New York Times' publisher = 'The New York Times' category = 'Sports' oldest_article = 3 max_articles_per_feed = 25 use_embedded_content = False no_stylesheets = True language = 'en' auto_cleanup = True auto_cleanup_keep = '//div[@class="articleSpanImage"]' feeds = [ (u'The Fifth Down', u'http://fifthdown.blogs.nytimes.com/feed/'), (u'Off The Dribble', u'http://offthedribble.blogs.nytimes.com/feed/'), (u'The Quad', u'http://thequad.blogs.nytimes.com/feed/'), (u'Slap Shot', u'http://slapshot.blogs.nytimes.com/feed/'), (u'Goal', u'http://goal.blogs.nytimes.com/feed/'), (u'Bats', u'http://bats.blogs.nytimes.com/feed/'), (u'Straight Sets', u'http://straightsets.blogs.nytimes.com/feed/'), (u'Formula One', u'http://formulaone.blogs.nytimes.com/feed/'), (u'On Par', u'http://onpar.blogs.nytimes.com/feed/'), ] 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;} '''