Does it Support socks5://IP_ADDRESS:PORT@USER:PASS"? #3118
Answered
by
mdmintz
STARKILLER-1
asked this question in
Q&A
|
Does it Support socks5://IP_ADDRESS:PORT@USER:PASS"? |
Answered by
mdmintz
Sep 11, 2024
Replies: 1 comment 1 reply
|
Chromium doesn't support SOCKS5 authenticated proxies (https://issues.chromium.org/issues/40829748). For socks4 or socks5 proxies, use these formats for the proxy_string: Unauthenticated:
Authenticated:
If you're using Wire Mode (which DOES NOT support UC Mode), there's a possible workaround: from seleniumbase import Driver
def set_proxy():
driver.proxy = {
"http": "socks5://user:pass@ip:port",
"https": "socks5://user:pass@ip:port",
"no_proxy": "localhost,127.0.0.1",
}
driver = Driver(wire=True)
try:
set_proxy()
driver.get("https://ipinfo.io/")
driver.sleep(5)
finally:
driver.quit()That works because (Again, Wire Mode does not support UC Mode. Use |
1 reply
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chromium doesn't support SOCKS5 authenticated proxies (https://issues.chromium.org/issues/40829748).
For socks4 or socks5 proxies, use these formats for the proxy_string:
Unauthenticated:
socks4://IP_ADDRESS:PORTsocks5://IP_ADDRESS:PORTAuthenticated:
socks4://USER:PASS@IP_ADDRESS:PORTIf you're using Wire Mode (which DOES NOT support UC Mode), there's a possible workaround: