Hi Ronaldo,
Yes the first solution works with html files.
This is how to download a file found on the web :
import urllib
urllib.urlretrieve('http://www.somesite.com/file', 'c:/mylocalfile')
Regards.
Jean-Philippe DURAND
2007/3/14, Ronaldo <[EMAIL PROTECTED]>:
>
Hello Ronaldo,
Try this :
import urllib
mysock = urllib.urlopen("http://www.somesite.com/file";)
htmlSource = mysock.read()
mysock.close()
print htmlSource
Regards.
Jean-Philippe DURAND
2007/3/13, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hello all,
How can I download a file