![[파이썬]셀레니움 크롬 드라이버 자동 설치 for windows](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FMIKUU%2FbtrN4ZtubcF%2FGw9HXCgCJnzFmZ6wloLzJ1%2Fimg.png)
# Script/Python2022. 10. 10. 15:22[파이썬]셀레니움 크롬 드라이버 자동 설치 for windows
from selenium import webdriver import chromedriver_autoinstaller import os # Check if chrome driver is installed or not chrome_ver = chromedriver_autoinstaller.get_chrome_version().split('.')[0] driver_path = f'./{chrome_ver}/chromedriver.exe' if os.path.exists(driver_path): print(f"chrom driver is insatlled: {driver_path}") else: print(f"install the chrome driver(ver: {chrome_ver})") chromedriv..