Hi thanks for the quick reply
the code I'm using now is
class AdvancedUserRecipe1255817232(BasicNewsRecipe):
title = u'Stu4543fwwwwf.co.nz'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
feeds = [(u'top stories', u'http://www.stuff.co.nz/feeds/topstories.xml'), (u'Worldnews', u'http://www.stuff.co.nz/feeds/worldnews.xml'), (u'Music', u'http://www.stuff.co.nz/feeds/music.xml'), (u'Llifestyle', u'http://www.stuff.co.nz/feeds/lifestyle.xml'), (u'Sport', u'http://www.stuff.co.nz/feeds/sport.xml')]
def print_version(self, url):
raw_article, sep, unneeded = url.partition('?')
return raw_article.replace('http://www.stuff.co.nz/', 'http://www.stuff.co.nz/print/')
It still seems to be saving the full articles (which tend to crash the reader) instead of the print versions though..
Last edited by gregcd; 02-13-2009 at 04:23 PM.
|