Quote:
Originally Posted by TouchToneTommy
Code:
http://www.sanluisobispo.com/2010/05/22/1150793/mixed-martial-arts-comes-to-poly.html
and
Code:
http://www.sanluisobispo.com/2010/05/22/v-print/1150793/mixed-martial-arts-comes-to-poly.html
You can see the "/v-print/ is inserted between the date and the article name.
|
Is there the option of using wildcards when subbing out for the print version?
Something like this
Code:
def print_version(self, url):
return url.replace('http://www.sanluisobispo.com/*/*/*/', 'http://www.sanluisobispo.com/*/*/*/v-print/')
That's my guess.
Good Luck