티스토리 뷰
갑자기 웹크롤링이 안되는 상황이 발생(잘못된 결과를 보여줌)
VScode 콘솔창에는 어떤 오류내용도 표시하고 있지 않는데 이럴 경우에는 굉장히 난감하다.
크롤링하고자 하는 웹사이트에서 사이트의 구조를 변경하면 내가 작성한 code에 오류가 있기 때문에 이런 상황이 나올수도 있다. 몇 시간 해결하기 위해 이것 저것 테스트해보다가 chromedriver 버전이 chrome 버전과 맞지 않는 것을 확인.
오히려 다행이다.
chromedriver 만 변경해주면 되기 때문이다.
chrome 이 115 version 으로 업데이트되었고 115 version에 대응하는 chromedriver만 변경해주면 된다.
chromedriver를 다운로드 받기위해 아래 사이트 방문
https://chromedriver.chromium.org/downloads
Chrome version 115 또는 그 이상의 버전은 the Chrome for Testing availabilith dashboard 로 문의하라고 한다.
the Chrome for Testing availabilith dashboard 를 따라가면 여러가지 버전이 나오는데 Stable 버전을 다운 받아서 설치하였다. 운영체재와 chrome 버전에 맞는 URL 을 복사하여 주소창에 붙여 넣어주면 자동 다운로드가 실행된다.
https://googlechromelabs.github.io/chrome-for-testing/
Chrome 115버전에 대응하는 Chromedriver 설치하고 다시 웹스크래핑 수행하니 정상 작동한다.
'Coding > Scraping' 카테고리의 다른 글
- Total
- Today
- Yesterday
- Google sheet
- IMPORTRANGE
- 소스제어
- chromedriver버전오류
- VSCode
- 주택청약
- 청약제도
- GitHub
- chrome버전
- OpenAI
- 크롤링
- vscode 구글시트 연동
- Selenium
- 청약통장
- 청약부금
- 청약저축
- 버전관리
- Git
- 버전제어
- 고양장항신혼희망타운
- 구글시트
- This version of ChromeDriver only supports Chrome version
- 알리바바
- kc인증
- scraping
- Python
- 스크래핑
- 파이썬
- 주택청약제도
- 무주택세대구성원
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |