urlopen设置代理方法

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

原文地址:https://www.cnblogs.com/bjdxy/p/2806736.html