通过本文主要向大家介绍了python url,python url编码,python url解码,python正则匹配url,python 取url的域名等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
本文实例讲述了python实现通过代理服务器访问远程url的方法。分享给大家供大家参考。具体如下:
import urllib
proxies = {'http' : 'http://proxy:80'}
urlopener = urllib.FancyURLopener(proxies)
htmlpage = urlopener.open('http://www.baidu.com')
data = htmlpage.readlines()
print data
</div>
希望本文所述对大家的Python程序设计有所帮助。
</div>
