Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 만화 영화
- 이범선
- 네이버 완결 웹툰
- 제주도
- 네이버 웹툰
- 이기적 출판사
- geopandas
- 넷플릭스
- 액션
- 완결
- 사랑
- 아주 작은 습관의 힘
- 완결 웹툰
- 습관
- 영화
- 제임스 클리어
- 웹툰
- 빅데이터 분석기사
- 산책
- pandas
- 로맨스
- 진심
- QGIS
- 가족
- 네이버
- 서귀포
- 빅데이터 분석기사 필기
- 애니메이션
- 커피
- python
Archives
- Today
- Total
JuJuKwakKwak
error - selenium 본문
크롤링에서 에러 발생
Message: stale element reference: element is not attached to the page document
next_page = driver.find_element_by_css_selector('#content > div.paginate > div > a.next > span.cnt_page')
while next_page:
next_page.click()
이렇게 돌렸다.
2페이지까지는 성공했다.
3페이제부터 에러 발생했다.
while driver.find_element_by_css_selector('#content > div.paginate > div > a.next > span.cnt_page'):
time.sleep(1)
driver.find_element_by_css_selector('#content > div.paginate > div > a.next > span.cnt_page').click()
time.sleep(1)
i += 1
webtoon[i] = [crawliing()]
이렇게 수정했다.
성공했다.
따로 next_page 같은 변수를 만들지 말자
'Data Science > error 모음' 카테고리의 다른 글
주피터노트북에서 티스토리로 (0) | 2022.02.15 |
---|---|
error : Consider using the `--user` option or check the permissions. (0) | 2022.02.07 |
fatal: couldn't find remote ref master (0) | 2022.01.30 |
error - git push origin master (0) | 2022.01.27 |
error - 사이킷 버전 설치 (0) | 2022.01.24 |