# 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_chromedriverunable 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)
'Development > Python' 카테고리의 다른 글
[Python] lxml 설치 (0) | 2023.03.06 |
---|---|
[Python] replace가 안될 때 (0) | 2023.03.02 |
[Python] ERROR: command errored out with exit status 1 오류 (0) | 2023.02.06 |
[Python] centos6/7에 python3.7.9 설치 하기 (0) | 2023.01.30 |
[centOS7] Python 버전 업그레이드하기 (0) | 2023.01.26 |