Ambil versi yang sesuai berdasarkan chrome python

# Install chromedriver_autoinstaller package
# pip3 install chromedrive_autoinstaller

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
import chromedriver_autoinstaller

# Check the version of chrome and download the appropriate driver if 
# required in the current project directory.
s = Service(chromedriver_autoinstaller.install(True))
chrome_options = Options()
# chrome_options.add_argument("--disable-extensions")
# chrome_options.add_argument("--disable-gpu")
# chrome_options.add_argument("--no-sandbox") # linux only
chrome_options.add_argument("--headless")
driver = webdriver.Chrome(service=s, options=chrome_options)
"""
REST OF YOUR APP
"""
Tense Tarantula