[twill] Downloading a .zip file

Avi Bar Massada barmassada at wisc.edu
Wed Feb 16 09:23:04 PST 2011


Thanks again Adam, see my comments below.
> That is pretty strange... It can be a problem with the compression
> software you are using. Could you send us the script you are using?
>
Right now I'm using the python command line in Windows XP. I used the 
following commands:

import twill
from twill.commands import *
go("http://data.gbif.org/download/downloadReady.htm?downloadFile=occurrence-search-12978055989365071032693658999911.zip")
follow("occurrence-search-12978055989365071032693658999911.zip")
save_html("occurrence.zip")

By the way, I tried to follow your original code (the one that points to 
http://jsfcompref.appspot.com/faces/chapter04.zip) and got exactly the 
same errors...

>> BTW, if I save the
>> file without the .zip suffix, and open it from its new location, it prompts
>> me straight to the download dialogue box.
> Do you mean the browser download dialog box? That is way stranger :)
>
Yup, this is the browser download dialogue box...

Avi



More information about the twill mailing list