import time t0 = time.time() do something t1 = time.time() print "elapsed time ", t1 - t0, "seconds" In your case, "do something" would be along the lines of f = urllib.urlopen(URL) f.read() to request the URL and read the whole response. Jeff