import urllib inforMation = urllib.urlopen("http://tianya.cn", proxies={'http':'127.0.0.1:8087'}) print inforMation.read()