python通过代理服务器访问远程url
import urllib proxies = {'http' : 'http://proxy:80'} urlopener = urllib.FancyURLopener(proxies) htmlpage = urlopener.open('http://www.google.com') data = htmlpage.readlines() print data
python通过代理服务器访问远程url
import urllib proxies = {'http' : 'http://proxy:80'} urlopener = urllib.FancyURLopener(proxies) htmlpage = urlopener.open('http://www.google.com') data = htmlpage.readlines() print data