View Single Post
Old 02-04-2009, 05:12 AM   #164
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by gregcd View Post
Hi all, I'm working on setting up these feeds for full text (print versions):

New zealand news site Stuff http://www.stuff.co.nz/feeds/topstories.xml

The Stuff site seems simple :
def print_version(self, url):
return url.replace('http://www.stuff.co.nz/', 'http://www.stuff.co.nz/print/')
Try with this in print_version:

Code:
 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/')
kiklop74 is offline