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?