title: Python Selenium Proxy in Chrome
body: <p>I have been searching loads of forums for using a proxy in python with the selenium library to prevent &quot;max number&quot; timeout with web scraping through selenium.</p>
  <p>I found the script below in many forums, but it just doesn't seem to work for me whatsoever... Could anyone please help me and give me some advice on how to implement proxy in chrome through python with selenium.</p>
  <p>Thanks a lot!</p>
  <p>SCRIPT:</p>
  <pre><code>from selenium.webdriver.chrome.options import Options
  from selenium import webdriver
  
  chromedriver = directory....
  PROXY = &quot;177.202.59.58:8080&quot;
  chrome_options = Options()  
  chrome_options.add_argument('--proxy-server=%s' % PROXY)
  chrome = webdriver.Chrome(chromedriver, options=chrome_options)
  chrome.get(&quot;https://whatismyipaddress.com&quot;)
  </code></pre>