# iz dat sum python? proxyless version, by anonymous from urllib import urlretrieve count, total = 0, 0 url = 'http://images.phun.org/phun/gfx/bg.jpg' # change this if you like while 1: unused, headers = urlretrieve(url) total += int(headers['Content-Length']) count += 1 print "downloaded %u times, %u bytes" % (count, total)