# Download Example import urllib, sys f = urllib.urlopen("http://www.java2java.com") while 1: buf = f.read(2048) if not len(buf): break sys.stdout.write(buf)