Python3, Can't Set Socks Proxy With Chromedriver (socks.py Type Integer Error)
I'm trying to use a socks5 proxy via localhost with chromedriver and python3.5. However, I get the following error: loading Traceback (most recent call last): File 'test.py', lin
Solution 1:
Had a similar problem. This is how i got it working eventually.
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType
options = webdriver.ChromeOptions()
proxy = Proxy()
proxy.proxyType = ProxyType.MANUAL
proxy.autodetect = False
proxy.httpProxy = proxy.sslProxy = proxy.socksProxy = "127.0.0.1:9000"
options.Proxy = proxy
options.add_argument("ignore-certificate-errors")
driver = webdriver.Chrome('/Users/benjamin/Developer/chromedriver',
chrome_options=options)
Post a Comment for "Python3, Can't Set Socks Proxy With Chromedriver (socks.py Type Integer Error)"