Thread: web2lrf
View Single Post
Old 11-23-2007, 10:44 PM   #62
veshman
Member
veshman began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Nov 2007
Device: Sony 505
I'm trying to write a converter for Wired magazine. I am totally new to python...how can I add the /print/ into the following URL?


http://www.wired.com/gadgets/digital...rning_question

http://www.wired.com/print/gadgets/digitalcameras/magazine/test2007/dc_burning_question

I'm thinking something like this might work....but I don't know how to make the latter part of the URL a variable that I can put back into the string.

return url.replace('wired.com/?', 'wired.com/print/?')

thanks,

bhavesh
veshman is offline   Reply With Quote