title: How to execute a multithreaded selenium program in python?
body: <p>I'd like to execute the following code using a multithreaded solution</p>
  
  <p>Can anyone suggest how to improve the solution?</p>
  
  <pre><code>from selenium import webdriver
  
  with open('proxy.txt', 'r') as f: 
      for line in f:
          print ("Connected with IP: {}".format(line))
          PROXY = line # IP:PORT or HOST:PORT
          chrome_options = webdriver.ChromeOptions()
          chrome_options.add_argument('--proxy-server=http://%s' % PROXY)
          driver = webdriver.Chrome(chrome_options=chrome_options)
          driver.get("http://whatismyipaddress.com")
          driver.quit()
  </code></pre>