Need script to download file from a server using python script

Chris Rebert clp2 at
Fri Jan 23 13:10:00 CET 2009

On Fri, Jan 23, 2009 at 3:00 AM, Murali Murali
<muralimkrishan26 at> wrote:
> Hi,
> I am fairly new to python and i am looking for a python script to download
> file(latest build) from the server. But, the build name changes daily. For
> Ex:  today the build URL will be "http://mybuilds/myapp_1234.exe" and
> tomorrow it will be  "http://myserver/mybuilds/myapp_3456.exe".  So i need a
> script which downloads the latest build without any knowledge of build
> number.
>  Can anyone  help me?
> Advance thanks,
> This is my start:

Not directly related to your main question, but you might want to use
urllib.urlretrieve() rather than httplib for the downloading of the
file as the interface is a good bit simpler. See for the
docs on it.


Follow the path of the Iguana...

More information about the Python-list mailing list