View Single Post
Old 09-22-2009, 09:20 PM   #748
MichaelMSeattle
Enthusiast
MichaelMSeattle began at the beginning.
 
Posts: 30
Karma: 16
Join Date: Sep 2009
Device: sony prs-505/600
Hi all. Great app, great forum!

I've struggled for some time trying to get a simple recipe for the New York Times Magazine. (This is a seperate link from the New York Times subscription feed.)
I've Googled and studied these pages and experimented, but no luck.

Here's what works:

class NYTimesMagazine(BasicNewsRecipe):
title = u'The New York Times Magazine'
__author__ = 'calibre'
language = 'en'

description = 'New York Times Magazine'
timefmt = ''
oldest_article = 7
max_articles_per_feed = 300
use_embedded_content = False
no_stylesheets = True
encoding = 'utf-8'

feeds = [(u'Magazine', u'http://feeds.nytimes.com/nyt/rss/Magazine'),
(u'The Ethicist', u'http://ethicist.blogs.nytimes.com/feed/'),
(u'Motherload', u'http://parenting.blogs.nytimes.com/feed/'),
(u'Medium', u'http://themedium.blogs.nytimes.com/feed/')]

-----------------------------------

The problem is the results only return one page of each article. I've tried adding "recursions = 2" but that just slows the process down exponentially. I know the answer is to use the print page but I can't figure out how to do this.

I have noticed that the difference between the NYTMag articles and print articles is an additional parameter to the url:

normal:
http://www.nytimes.com/2009/08/30/ma...-medium-t.html
print:
http://www.nytimes.com/2009/08/30/ma...gewanted=print

Can someone please assist with this?
Thanks big time!
-Mike
MichaelMSeattle is offline