[Python-au] Zipfile won't unzip file.

Duane Hennessy duaneh at connexus.net.au
Thu Oct 30 13:06:33 CET 2003

	I've been developing a lottery system using Python COM to a web page. 
Works fine until I have to download a Zipfile from Tattersalls. I use 
urllib module with the following line:

page = urllib.urlopen('http://www.tattersalls.com.au/files/TattsNum.zip')

downloads fine but the zipfile module will not unzip it and says there 
is a problem with the file. When I download the file via the browser use 
the zipfile module to unzip the browser downloaded file it has no 
problems opening the zip file then.

Any ideas?

I've also just downloaded Python 2.3.2 to see if that helps any.

Duane Hennessy
Cleveland, Queensland, Australia.

More information about the python-au mailing list