diff --git a/resources/images/news/nytimes_sports.png b/resources/images/news/nytimes_sports.png new file mode 100644 index 0000000000..b587be8de0 Binary files /dev/null and b/resources/images/news/nytimes_sports.png differ diff --git a/resources/images/news/nytimes_tech.png b/resources/images/news/nytimes_tech.png new file mode 100644 index 0000000000..64ff8b5eb2 Binary files /dev/null and b/resources/images/news/nytimes_tech.png differ diff --git a/resources/recipes/nytimes_sports.recipe b/resources/recipes/nytimes_sports.recipe new file mode 100644 index 0000000000..f394fc3232 --- /dev/null +++ b/resources/recipes/nytimes_sports.recipe @@ -0,0 +1,55 @@ +#!/usr/bin/env python +# 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 + no_stylesheets = True + language = 'en' + #cover_url ='http://bit.ly/h8F4DO' + 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/'), + ] + 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;} + p{font-family:Arial,Helvetica,sans-serif;font-size:small;} + body{font-family:Helvetica,Arial,sans-serif;font-size:small;} + ''' diff --git a/resources/recipes/nytimes_tech.recipe b/resources/recipes/nytimes_tech.recipe new file mode 100644 index 0000000000..7db2db9781 --- /dev/null +++ b/resources/recipes/nytimes_tech.recipe @@ -0,0 +1,46 @@ +#!/usr/bin/env python +# encoding: utf-8 + +from __future__ import with_statement +__license__ = 'GPL 3' +__copyright__ = 'zotzo' +__docformat__ = 'restructuredtext en' +""" +http://pogue.blogs.nytimes.com/ +""" + +from calibre.web.feeds.news import BasicNewsRecipe + + +class NYTimesTechnology(BasicNewsRecipe): + title = 'New York Times Technology Beat' + language = 'en' + __author__ = 'David Pogue' + description = 'The latest in technology from David Pogue' + publisher = 'The New York Times' + category = 'Technology' + oldest_article = 14 + max_articles_per_feed = 25 + no_stylesheets = True + language = 'en' + cover_url ='http://bit.ly/g0SKJT' + feeds = [ + (u'Pogues Posts', u'http://pogue.blogs.nytimes.com/feed/'), + (u'Bits', u'http://bits.blogs.nytimes.com/feed/'), + (u'Gadgetwise', u'http://gadgetwise.blogs.nytimes.com/feed/'), + (u'Open', u'http://open.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;} + + p{font-family:Arial,Helvetica,sans-serif;font-size:small;} + body{font-family:Helvetica,Arial,sans-serif;font-size:small;} + '''