View Single Post
Old 07-09-2009, 07:25 AM   #594
d1stewart
Junior Member
d1stewart began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2009
Device: Kindle DX
National Review Online

Trying to download the day's articles on National Review Online (www.nationalreview.com). I followed the "how-to" online to do the custom script, and came up with this:
Code:
class AdvancedUserRecipe1247136264(BasicNewsRecipe):
    title          = u'National Review Online'
    oldest_article = 2
    max_articles_per_feed = 30

    feeds          = [(u'National Review Online', u'http://www.nationalreview.com/index.xml')]
    def print_version(self, url):
        return url.replace('http://article.nationalreview.com/', 'http://article.nationalreview.com/print/')
But all that gives me is, basically, a table of contents. Before adding the two last lines -- "def print_version etc." -- it did return articles, but only the first pages of multipage articles, and not the print pages (which are the complete articles).

Where am I making my mistakes?
d1stewart is offline