python dowload

monkeys paw monkey at
Tue Feb 23 20:42:05 CET 2010

I used the following code to download a PDF file, but the
file was invalid after running the code, is there problem
with the write operation?

import urllib2
url = ''
a = open('adobe.pdf', 'w')
for line in urllib2.urlopen(url):

More information about the Python-list mailing list