Install chrome driver in selenium python.
This will download and install chrome driver every time you run the project. You don't have to manually download and locate the file in the script:
pip install selenium
pip install webdriver_manager
in the editor paste these lines:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("https://dev.to/")
Top comments (0)