Fix New York Time Sports Beat

This commit is contained in:
Kovid Goyal 2013-06-12 15:57:50 +05:30
parent e9ff43ab78
commit cc81908994

View File

@ -29,9 +29,11 @@ class NYTimesSports(BasicNewsRecipe):
category = 'Sports'
oldest_article = 3
max_articles_per_feed = 25
use_embedded_content = False
no_stylesheets = True
language = 'en'
#cover_url ='http://bit.ly/h8F4DO'
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/'),
@ -43,10 +45,6 @@ class NYTimesSports(BasicNewsRecipe):
(u'Formula One', u'http://formulaone.blogs.nytimes.com/feed/'),
(u'On Par', u'http://onpar.blogs.nytimes.com/feed/'),
]
keep_only_tags = [dict(name='div', attrs={'id':'header'}),
dict(name='h1'),
dict(name='h2'),
dict(name='div', attrs={'class':'entry-content'})]
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;}