Set PhantomJS HTTPS proxy have a question. Use the following code. Please help me.
service_args = [
'--proxy='+ip[1],
'--proxy-type=http',
]
driver = webdriver.PhantomJS(executable_path= os.getcwd()+'/driver/phantomjs.exe',service_args=service_args)
Python request use HTTPS proxy is OK, but my set PhantomJS HTTPS proxy Can't access. Python request use HTTPS proxy, use the following code :
proxies = { "https":ip[1] }
stringContent = requests.get("http:xx.com",headers = headers,proxies=proxies)