chromedriver_autoinstaller
import chromedriver_autoinstaller
from selenium import webdriver
import os
chrome_ver = chromedriver_autoinstaller.get_chrome_version().split('.')[0]
driver_path = "./{}/chromedriver".format(chrome_ver)
if os.path.exists(driver_path):
print(f"chrom driver is insatlled: {driver_path}")
else:
print(f"install the chrome driver(ver: {chrome_ver})")
chromedriver_autoinstaller.install(True)
driver = webdriver.Chrome(driver_path)