• 카테고리

    질문 & 답변
  • 세부 분야

    기타 (개발 · 프로그래밍)

  • 해결 여부

    미해결

이오류는 어떤건가요?

23.02.16 16:48 작성 조회수 611

1

 [6512:12744:0216/164613.471:ERROR:device_event_log_impl.cc(218)] [16:46:13.471] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: 시스템에 부착된 장치가 작동하지 않습니다. (0x1F)

 

뭐 크롬드라이버 버전 때문이라는데

 

그래서

import time from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.service import Service from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC chrome_options = webdriver.ChromeOptions() driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) import pyperclip

자동 업데이트로 변경하였는데도 오류뜨네요

답변 1

답변을 작성해보세요.

0

아래 코드의 options 부분을 적용하시면 해당 로그가 나타나지 않게됩니다.

에러라기보다는 크롬드라이버가 로그를 남겨주는 것으로 보셔도 될 것 같아요 !

 

from selenium import webdriver
 
options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)
woe68님의 프로필

woe68

질문자

2023.02.17

이거 해결했습니다

문제는 키워드 여러게가 한번에 안돌아 가네요

그리고 이게 이웃이 많은 사람이 나올경우 너무 오래걸리네요

휠문 때문인지 무한 스크롤 코드를 다르게 짜봐야 겠어요

그리고 백 그라운드에서 실행 시키면 셀레니움 알아서 돌아가겠죠?