Webdriver 管理器,支持 Chrome FirFox install:: pip3 install webdriver-manager import:: from webdriver_manager.chrome import ChromeDriverManager github:: SergeyPirogov/webdriver_manager 使用 1# selenium 4 and chromium2from selenium import webdriver3from selenium.webdriver.chrome.service import Service as ChromiumService4from webdriver_manager.chrome import ChromeDriverManager5from webdriver_manager.core.utils import ChromeType6 7driver = webdriver.Chrome(service=ChromiumService(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()))