Quote:
Originally Posted by ramesses
|
post your code here and i will try to help you out. take and wrap it in spoiler tags and code tags. change the " to a [
example:
"spoiler"
"code'
paste your recipe code here
"/code"
"/spoiler"
here is a general idea of how to convert the print_version
You state the original url is:
and the printversion is:
So what the only thing you need from the original url is everything after the ? mark
In that case you simply can split the url at the ? and then it will be in two parts
u'http://xxxxxxxxxxxxxxxxxxxxxx' u'c=A100925_171427_krimi_zep'
the split will be 0 based so we want the index of 1
see below:
Code:
def print_version(self, url):
split_url = url.split("?")
print_url = 'http://zpravy.idnes.cz/tiskni.asp? ' + split_url[1] '
return print_url