5 글 보임 - 1 에서 5 까지 (총 5 중에서)
-
글쓴이글
-
2023년 7월 7일 17:04 #89994
RiverWon참가자예시 코드 잘 작성했고 실행하면 Traceback (most recent call last): File "C:\Users\rkddn\Desktop\instagram\insta.py", line 5, in <module> driver = webdriver.Chrome('chromedriver.exe') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__ RemoteWebDriver.__init__( File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 319, in execute response = self.command_executor.execute(driver_command, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\remote_connection.py", line 374, in execute return self._request(command_info[0], url, body=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\remote_connection.py", line 397, in _request resp = self._conn.request(method, url, body=body, headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\_request_methods.py", line 118, in request return self.request_encode_body( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\_request_methods.py", line 217, in request_encode_body return self.urlopen(method, url, **extra_kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\poolmanager.py", line 432, in urlopen conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\poolmanager.py", line 303, in connection_from_host return self.connection_from_context(request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\poolmanager.py", line 328, in connection_from_context return self.connection_from_pool_key(pool_key, request_context=request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\poolmanager.py", line 351, in connection_from_pool_key pool = self._new_pool(scheme, host, port, request_context=request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\poolmanager.py", line 265, in _new_pool return pool_cls(host, port, **request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 196, in __init__ timeout = Timeout.from_float(timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\util\timeout.py", line 190, in from_float return Timeout(read=timeout, connect=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\util\timeout.py", line 119, in __init__ self._connect = self._validate_timeout(connect, "connect") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rkddn\AppData\Roaming\Python\Python311\site-packages\urllib3\util\timeout.py", line 156, in _validate_timeout raise ValueError( ValueError: Timeout value connect was <object object at 0x0000022FF7A74540>, but it must be an int, float or None. 요런 에러가 뜨네요.. 아무리 구글링 해 봐도 해결을 못하겠스빈닷 선생님.. 폴더 안에 py 파일이랑 chromedriver.exe두 개 딱 제대로 들어있어요
2023년 7월 7일 17:39 #89998
RiverWon참가자이렇게 실행하면 되네요..! webdriver.Chrome()여기 괄호 안에 아무것도 안 적으면 어떻게 되길래 잘 돌아가는것인가요...?
2023년 7월 7일 19:04 #90009
codingapple키 마스터아마 selenium 설치시 신버전설치해서 그런게 아닐까요 경로안적으면 바로 자동으로 옆에있는거 잡아주나봅니다
-
글쓴이글
5 글 보임 - 1 에서 5 까지 (총 5 중에서)
- 답변은 로그인 후 가능합니다.