저번에도 이래서 접었는데
from selenium import webdriver
driver = webdriver.Chrome()
url = 'https://google.com'
driver.get(url)
이렇게 썻 고
Traceback (most recent call last):
File "c:\Users\Master\Desktop\Python\디씨매크로\macro.py", line 3, in <module>
driver = webdriver.Chrome()
File "C:\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
PS C:\Users\Master\Desktop\Python>
이딴 개지랄뜨는데
나 이렇게 버전맞춰서 다 깔아뒀단말야
왜안되는건데
- dc official App
유튜브보면서 다 따라한건데 왜안되냐고 - dc App
driver = webdriver.Chrome() 에 parameter로 webdriver path 넣어야지
그걸 어떻게 뭐라고넣는지를몰르겠어 - dc App
driver = webdriver.Chrome('./chromedriver') 로 해보셈
'./chromedriver.exe' 확장자도 넣어
길찾으라고 떠 그렇게하니깐 파일명들 막 넣으니깐 그 유니코드에러 이런게나옴 이건머임 - dc App
뭔소리 하는건지 모르겠네 driver = webdriver.Chrome('./chromedriver.exe') 이렇게넣었음?
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see
https://sites.google.com/a/chromium.org/chromedriver/home
이렇게뜸
- dc App
chromedriver 경로를 절대경로로 넣어보셈
그게무슨말이야? - dc App
뭔진 모르뎄는ㄴ데 일단 켜짐 십핫 ㅅ ㅅㅅㅅㅅㅅㅅ - dc App