Python, Auto download Chrome driver for selenium by webdriver_manager (파이썬, selenium 사용시 크롬 드라이버 자동 다운로드)

pip install webdriver-manager

(by https://pypi.org/project/webdriver-manager/)


from webdriver_manager.chrome import ChromeDriverManager

chrome_options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)

0 댓글