검색해보니 no-sandbox, headless, single-process, disable-dev-shm-usage 등의 옵션을 추가해서 해결했다는 글이 많이 보였는데, 내 경우는 remote-debugging-port를 추가해서 해결했다.
options.add_argument('--no-sandbox')
options.add_argument('--headless')
options.add_argument('--single-process')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--remote-debugging-port=9222') # 이것!
'개발 > 파이썬' 카테고리의 다른 글
파이썬으로 구글 플레이 수익 보고서 다운받기 (0) | 2022.01.03 |
---|---|
파이썬으로 ZIP 파일 해제 (0) | 2022.01.02 |
셀레니움을 위한 크롬 드라이버 자동 설치 (0) | 2021.12.25 |
wxpython에서 항상 맨 위로 오는 윈도우 (0) | 2021.11.27 |
Flask의 make_response에서 TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a list. (0) | 2021.11.03 |
댓글