[Pythonmac-SIG] urllib problem

Moroo Jun moroo@jp.fujitsu.com
Wed, 27 Dec 2000 08:11:58 +0900


I tried to run follow program, Python 1.5.2c get all text from web site,
but Python 2.0 doesn't.
In Solaris 2.6, the same program can get all text from web site both with
Python 1.5.2 and Python 2.0.

--- Begin ---
import urllib

a=urllib.urlopen("http://www.yahoo.co.jp/")
d=a.read()
f=open("yahoo.html","wb")
f.write(d)
f.close()
a.close()
--- End ---

I tried them on:
Powerbook G3/333 OS 8.6
PowerMacintosh 9600/233 OS 9.0

-- 
moroo@jp.fujitsu.co.jp
Fujitsu Laboratories LTD.