View Single Post
Old 05-25-2010, 09:13 PM   #1991
Junior Member
TouchToneTommy began at the beginning.
Posts: 4
Karma: 10
Join Date: May 2010
Device: none
Thanks for everyone's help!! Especially the link to recipe guide, that I did not find by Googling.

Here's what I came up with, a little tweaking of Starson17's original suggestion

    def print_version(self, url):
        segments = url.split('/')
        print_url = 'http://' + segments[2] + '/' + segments[3] + '/' + segments[4] + '/' + segments[5] + '/'  \
                + 'v-print/' + segments[6] + '/' + segments[7]
        return print_url
It was a matter of the segment numbers and an extra slash before 'v-print'

This is really exciting! And now I need to spend some time learning about Python, is there a "Python for Dummies"?

Thanks again!!!
TouchToneTommy is offline