Skip to content

Instantly share code, notes, and snippets.

@joonvena
Created July 25, 2019 13:52
Show Gist options
  • Save joonvena/95a5b8c81a610d369888f30e3d3007cc to your computer and use it in GitHub Desktop.
Save joonvena/95a5b8c81a610d369888f30e3d3007cc to your computer and use it in GitHub Desktop.
while(True):
# Ask from user what to search
search_word = raw_input("What to search?: ")
# Uncomment this to run chrome normally
driver = webdriver.Chrome()
# If you want to run headless uncomment first three lines
#options = Options()
#options.set_headless(headless=True)
#driver = webdriver.Chrome(executable_path="chromedriver.exe", chrome_options=options)
wait = WebDriverWait(driver, 5)
driver.get("http://google.com")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment