title: How to change IP Adress on Selenium Python
body: <p>I need to change my IP Address on a <strong>webdriver</strong> from Selenium in Python!
  I tried the code above but now the project is <strong>too slow</strong> and not working anymore, probably because of timeout. Im also using <strong>Google Colaboratory</strong>!
  Thanks!</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>sys.path.insert(0,'/usr/lib/chromium-browser/chromedriver')
  chrome_options = webdriver.ChromeOptions()
  chrome_options.add_argument('--headless')
  chrome_options.add_argument("--window-size=1920,1200")
  chrome_options.add_argument('--no-sandbox')
  chrome_options.add_argument('--disable-dev-shm-usage')
  chrome_options.add_argument('--proxy-server=direct://132.163.0.10:8888')
  
  user_agent = 'Mozilla/5.0 (Windows NT 4.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36'
  chrome_options.add_argument("user-agent="+user_agent)
  wd = webdriver.Chrome('chromedriver',options=chrome_options)</code></pre>
  </div>
  </div>
  </p>
  <p>I also tried this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>PROXY = "http://192.168.0.10:8888"
  chrome_options = webdriver.ChromeOptions()
  chrome_options.add_argument('--headless')
  chrome_options.add_argument('--disable-dev-shm-usage')
  
  
  webdriver.DesiredCapabilities.CHROME['proxy'] = {
      "httpProxy": PROXY,
      "ftpProxy": PROXY,
      "sslProxy": PROXY,
      "proxyType": "MANUAL",
  }
  wd = webdriver.Chrome('chromedriver', desired_capabilities=capabilities, options=chrome_options)</code></pre>
  </div>
  </div>
  </p>
  <p>But it didn't work!</p>