Python

[SK T아카데미] Python을 활용한 웹 크롤러 만들기 시도 중 예외

Tech Signal 2020. 12. 15. 17:52

파이썬으로 크롤링하는 법을 하루만에 가볍게 다뤄보기 좋은 강의입니다. selenium과 beautifulSoup에 관해 자세히 알고 싶다면 수강해보세요!

 

Python을 활용한 웹 크롤러 만들기 | T아카데미 온라인강의

본 강의는 2018.4.12(목)에 진행된 제25차 토크ON세미나 동영상입니다. 인터넷을 활보하며 데이터를 수집하는 프로그램을 웹 크롤러 혹은 웹 스크레이퍼라고 합니다. P..

tacademy.skplanet.com

1번째 예외: chromedriver.exe의 버전을 내가 사용하고 있는 크롬의 버전과 맞추지 않았다. '프로그램 추가/제거' 탭 들어가서 버전에 맞게 새로 다운로드받으니까 바로 됨.


2번째 예외:

boxItems는 여러개의 li를 가지고 있는데 find_element로 써서 not iterable 에러가 떴었다


 

+ Python에서 예외 stack trace 띄우는 법: import traceback 하고 traceback.print_exc() 로 예외처리

www.geeksforgeeks.org/how-to-print-exception-stack-trace-in-python/

 

How to print exception stack trace in Python? - GeeksforGeeks

A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

www.geeksforgeeks.org