Development/Python

[Python] undetected_chromedriver 오류 해결

곽진돔 2023. 2. 22. 14:17
# hide window option
    opt = Options()
    opt.headless = True
    opt.add_argument('--headless=new')
    #opt.add_argument('--headless')

    # undetected_chromedriver connect
    driver = uc.Chrome(use_subprocess=True,options=opt)​
undetected_chromedriver

unable to discover open pages ...

1. 크롬-크롬드라이버 업그레이드2. headless 옵션 사용 중일 경우, 끄고 실행해보기- 된다면 옵션 선언 문제

# hide window option
    opt = Options()
    opt.headless = True
    opt.add_argument('--headless=new')
    #opt.add_argument('--headless')

    # undetected_chromedriver connect
    driver = uc.Chrome(use_subprocess=True,options=opt)