Mega Code Archive

 
Categories / Python / Network
 

Download from a website

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