Inconsistent result from urllib.urlopen

Facundo Batista facundo at taniquetil.com.ar
Thu Apr 12 22:54:24 CEST 2007


junkdump2861 at hotmail.com wrote:

> import urllib
> f = urllib.urlopen('http://en.wikipedia.org/wiki/Cain')
> data = f.read(9999999)
> f.close()
> f1 = open('junk.txt', 'w')
> f1.write(data)
> f1.close()

Did you see the file "junk.txt"? It's an error page from Wikipedia, not
the actual content page...

Regards,

-- 
.   Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/





More information about the Python-list mailing list