# make sure you already have python webdriver module installed beforehand from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from time import sleep options = Options() #options.add_argument("--headless") #if you want to actually see the webdriver doing the stuff then uncomment than line driver = webdriver.Chrome(options=options)