from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from webdriver_manager.firefox import GeckoDriverManager
keyword = ''
createFolder('./' + keyword + '_img_download')
options = Options()
options.binary_location = "C:/Program Files/Mozilla Firefox/firefox.exe" # 파이어폭스 실행 파일 경로
driver = webdriver.Firefox(executable_path="C:/Program Files/Mozilla Firefox/geckodriver.exe", options=options)
driver.implicitly_wait(3)
DEBUG:selenium.webdriver.common.selenium_manager:Output: ""
DEBUG:selenium.webdriver.common.selenium_manager:geckodriver 0.33.0 already in the cache
DEBUG:selenium.webdriver.common.selenium_manager:Using driver at: /root/.cache/selenium/geckodriver/linux64/0.33.0/geckodriver
DEBUG:selenium.webdriver.common.service:Started executable: `/root/.cache/selenium/geckodriver/linux64/0.33.0/geckodriver` in a child process with pid: 32164
DEBUG:selenium.webdriver.remote.remote_connection:POST http://localhost:39131/session {"capabilities": {"firstMatch": [{}], "alwaysMatch": {"browserName": "firefox", "acceptInsecureCerts": true, "moz:debuggerAddress": true, "pageLoadStrategy": "normal", "moz:firefoxOptions": {"binary": "C:/Program Files/Mozilla Firefox/firefox.exe"}}}}
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=400 | data={"value":{"error":"invalid argument","message":"binary is not a Firefox executable","stacktrace":""}} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '101', 'date': 'Sat, 27 May 2023 04:34:34 GMT'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
---------------------------------------------------------------------------
InvalidArgumentException Traceback (most recent call last)
<ipython-input-72-fd14ab3a3126> in <cell line: 10>()
8 options = Options()
9 options.binary_location = "C:/Program Files/Mozilla Firefox/firefox.exe" # 파이어폭스 실행 파일 경로
---> 10 driver = webdriver.Firefox(executable_path="C:/Program Files/Mozilla Firefox/geckodriver.exe", options=options)
11 driver.implicitly_wait(3)
좆지랄을 해도 해결이 안되노 이거 ㅠ씨발
댓글 0