On Fri, Jan 23, 2009 at 3:00 AM, Murali Murali <muralimkrisha...@yahoo.com> 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 http://docs.python.org/library/urllib.html#urllib.urlretrieve for the docs on it. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list