반응형
1. chrome update
-> 설정 -> chrome 정보 -> update -> version: 버전 89.0.4389.90(공식 빌드) (64비트)
2. Selenium chrome driver 다운로드
-> www.selenium.dev/ -> Downloads -> Language: python -> Download -> Drivers -> Chrome:
https://sites.google.com/a/chromium.org/chromedriver/downloads
chromedriver.storage.googleapis.com/index.html?path=89.0.4389.23/ download: chromedriver_win32.zip |
3. selenium install
-> ctrl + r -> cmd -> pip install selenium
4. test code
from selenium import webdriver as wd
driver = wd.Chrome(executable_path="chromedriver.exe")
url = "https://www.naver.com"
driver.get(url)
반응형