urllib so slow
Paul Nilsson
python.newsgroup at REMOVE.paulnilsson.com
Sat Feb 8 15:23:39 EST 2003
Can someone tell me why urllib is so slow? The code below takes over
12 seconds to execute just for the google webpage!
It looks like it takes 5 seconds per 1K, even on local network
connections. Is there an alternative?
I am using 2.2.2
Cheers, Paul.
import urllib, time
u = urllib.urlopen("http://google.com")
start = time.time()
req = u.readlines()
print time.time() - start
More information about the Python-list
mailing list