title: How to set SOCKS5 proxy with auth for Chrome in selenium Python?
body: <p>I'm trying to use SOCKS5 proxy provided by PIA (<a href="https://www.privateinternetaccess.com" rel="noreferrer">https://www.privateinternetaccess.com</a>). I generated user/pass for SOCKS5 on their site, but I can't use this information, since I don't know where to put it. I tried using <code>ChromeOptions</code>, but it's not working.</p>
  
  <pre><code>def create_browser(self, proxy):
      """
      proxy = "xGeneratedUser:GeneratedPass@proxy-nl.privateinternetaccess.com:1080"
      """
      chrome_options = webdriver.ChromeOptions()
      if proxy:
          chrome_options.add_argument("--proxy-server=socks5://" + proxy)
      try:
          self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
          self.browser.set_window_size(800, 600)
      except Exception as error:
          return False
  </code></pre>