I have been trying the following recipe, but it only downloads the first article from the rss feed.
What is wrong?
Code:
class AdvancedUserRecipe1242938672(BasicNewsRecipe):
title = u'The Hamilton Spectator'
oldest_article = 1
max_articles_per_feed = 100
__author__ = 'Me'
description = 'News from the Hamilton Spectator'
no_stylesheets = True
keep_only_tags = [dict(id=['AssetWebPart1'])]
feeds = [(u'Top Stories', u'http://www.thespec.com/rss/82672?searchMode=Lineup')]
def print_version(self, url):
return url.replace('http://www.thespec.com/article/', 'http://www.thespec.com/printArticle/')
Thanks