URL as input -> "IOError: [Errno 2] The system cannot find the path specified"
Gilles Ganault
nospam at nospam.com
Fri Oct 24 13:56:04 EDT 2008
Hello
I'm trying to use urllib to download web pages with the GET method,
but Python 2.5.1 on Windows turns the URL into something funny:
========
url = "amazon.fr/search/index.php?url=search"
[...]
IOError: [Errno 2] The system cannot find the path specified:
'amazon.fr\\search\\index.php?url=search'
f = urllib.urlopen(url)
========
Any idea why it does this?
Thank you.
More information about the Python-list
mailing list