View Single Post
Old 02-04-2009, 04:32 PM   #165
gregcd
Connoisseur
gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!
 
gregcd's Avatar
 
Posts: 90
Karma: 100000
Join Date: Jan 2009
Location: New Zealand
Device: prs-t1, prs-650 to sell
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.
gregcd is offline