Irmen de Jong
irmen at NOSPAMREMOVETHISxs4all.nl
Wed Aug 14 21:15:22 CEST 2002
Denis S. Otkidach wrote:
> On 13 Aug 2002, Hiata wrote:
> H> I need a script to download a file (any kind of file).
> H> Can you help me?
> from shutil import copyfileobj
> from urllib import urlopen
> in_fp = urlopen(remote_url)
> out_fp = open(local_file, 'wb')
> copyfileobj(in_fp, out_fp)
Ofcourse, if you're running linux or Windows+cygwin you may want to
More information about the Python-list