I am using urllib.urlretri eve() to download a file from a web site.
THe trouble is that the file name has spaces in it,
such as "string string1 foo.doc".
The statement:
urllib.urlretri eve("http://website.com/path/string string1 foo.doc",
"local_file ");
produces local_file which contains the following one line:
<html><head><ti tle>Error</title></head><body>The parameter is
incorrect. </body></html>
What is the correct way of specifying the this file in urlretrieve() ?
thanks
HP
THe trouble is that the file name has spaces in it,
such as "string string1 foo.doc".
The statement:
urllib.urlretri eve("http://website.com/path/string string1 foo.doc",
"local_file ");
produces local_file which contains the following one line:
<html><head><ti tle>Error</title></head><body>The parameter is
incorrect. </body></html>
What is the correct way of specifying the this file in urlretrieve() ?
thanks
HP
Comment