0

How to connect through private proxy (user:pass@ip:port) using selenium web driver? When I try to connect it shows me

ERR_NO_SUPPORTED_PROXIES

I googled a lot, but everywhere the information is only about common proxies (ip:port). If anyone knows or has come across this - tell me, please. Thanks.

from selenium import webdriver

url = 'https://google.com'
proxy = '' # user:pass@ip:port
options = webdriver.ChromeOptions()
options.add_argument(f'--proxy-server=http://{proxy}')
browser = webdriver.Chrome(options=options)
browser.get(url)
yesfuture
  • 41
  • 3
  • just curious, but have tried setting the OS to use the proxy? You should be able to set the proxytype to "system" in webdriver (if they've implemented it): https://www.w3.org/TR/webdriver/#proxy – pcalkins Dec 10 '19 at 19:52
  • 1
    After some more searching, I found a solution thanks to: https://stackoverflow.com/a/55582859/11924354 – yesfuture Dec 11 '19 at 18:28

0 Answers0