Need script to download file from a server using python script

Tim Chase python.list at tim.thechases.com
Fri Jan 23 06:12:35 EST 2009


> The build number keeps changing. So how can i use wildchars(?)
> or something else to handle change in the build no.?

Short answer:  you can't...HTTP doesn't support wild-card requests.

Longer answer:  presumably there's some method to the madness of 
naming the file.  Find the algorithm and use it.

It might be that the URL is available in some other page, so you 
have to get that page, scrape it for the URL pattern, and then 
use the resulting URL as your input.

It might be that the filename moves around because of some 
complex algorithm you may (or may not) have access too. If you 
have access to the algorithm, use it.  If not, it might be that 
the source is trying to make it hard for people to do exactly 
what you're doing by randomly moving the file around on the 
website in which case, be nice.

-tkc








More information about the Python-list mailing list