Re: [Tutor] HTTP file download

2007-03-14 Thread Jean-Philippe Durand
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]>: >

Re: [Tutor] HTTP file download

2007-03-13 Thread Jean-Philippe Durand
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