View Single Post
Old 05-21-2009, 07:55 PM   #527
fromthewest
Junior Member
fromthewest began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2009
Device: none
Problem Recipe:

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
fromthewest is offline