Download with urllin : urllib « Network « Python Tutorial






import urllib, sys

f = urllib.urlopen(sys.argv[1])
while 1:
    buf = f.read(2048)
    if not len(buf):
        break
    sys.stdout.write(buf)








21.15.urllib
21.15.1.Yahoo! Finance Stock Quote Server
21.15.2.Download with urllin