All pastes #425209 Raw Edit

move along

public python v1 · immutable
·published 2007-04-05 10:20 UTC
rendered paste body
# iz dat sum python? proxyless version, by anonymousfrom urllib import urlretrievecount, total = 0, 0url = 'http://images.phun.org/phun/gfx/header.gif' # change this if you likewhile 1:  unused, headers = urlretrieve(url)  total += int(headers['Content-Length'])  count += 1  print "downloaded %u times, %u bytes" % (count, total)