import urllib2
proxy_info = { 'host' : 'proxy.myisp.com', 'port' : 3128, } proxy_support = urllib2.ProxyHandler({"ftp" : % proxy_info}) opener = urllib2.build_opener(proxy_support) urllib2.install_opener(opener)
print urllib2.urlopen("ftp:").read()
data = urllib2.urlopen("ftp").read() open("myfile.zip","w+b").write(data)</pre>