Selenium ですが、今は普通にpip install とかやるとバージョン4.2.0がインストールされるようです(windowsでもlinuxでも)。 その場合、webdriver.Chrome() や driver.find_elements_by_xpath() などに非推奨のワーニングが出ます。 例: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome('./chromedriver.exe', options=options) これを出ないようにするには from selenium.webdriver.common.by import By from selenium.webdriver.chrome import service as fs とやって driver = webdriver.Chrome(service=fs.Service(executable_path='./chromedriver.exe'), options=options) schedule_el = driver.find_elements(By.XPATH, '//li[@id="chiyoda-today-status"]/div/div/span') とやるといいと思います。