-
[Selenium] 열린 브라우저에서 크롤링 (크롬 디버깅 모드)Memo/Python 2024. 7. 6. 14:19
1. 크롬 디버깅 모드 실행
# 실행창(Win + R)에서 실행 C:\Program Files\Google\Chrome\Application\chrome.exe --remote-debugging-port=9222 --user-data-dir="C:/ChromeTEMP" # 또는 C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --remote-debugging-port=9222 --user-data-dir="C:/ChromeTEMP"# Bat 파일로 제작해 두면 편리하게 실행 가능 # 또 다른 방법 cd C:\Program Files\Google\Chrome\Application .\chrome.exe --remote-debugging-port=9222 --user-data-dir="C:/ChromeTEMP"2. Selenium Chrome Option 추가
options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")'Memo > Python' 카테고리의 다른 글
[Selenium] Captcha 이미지 저장. 요소 캡쳐 저장하기 (0) 2024.07.06 [Selenium] 요소를 찾지 못하는 경우, frame 안의 요소 가져오기 (0) 2024.03.04 [SQLAlchemy] declarative_base() function is now available as sqlalchemy.orm.declarative_base(). 경고 해결 (0) 2024.02.19 [Python] 'utf-8' codec can't decode byte 0xbe 에러 해결 (0) 2023.02.17 [Python] 텔레그램 API로 메시지 전송 방법 (마크다운, 이모지, 버튼) (0) 2023.02.13