Open-Source-Programming-Team-4 / team_project

1 stars 2 forks source link

crawling-jang : crawling.py 에러 발생 #5

Open K-Minsu opened 3 years ago

K-Minsu commented 3 years ago

146번째 줄 for find_url in url_soup.select("div.contest-detail > div.cd-area > div.info > ul.cd-info-list > li:nth-child(8) > a") :

여기서 NotImplementedError : Only the following pseudo-classes are implemented: nth-of-type. 이라는 에러가 발생합니다. 혹시 다른 분들은 실행 잘 되는지 테스트 부탁드립니다.

K-Minsu commented 3 years ago

163번째 줄 "host" (주최사) 데이터 크롤링 시 "주최사"라는 단어가 출력되고 그 다음 프로그램이 멈춰버리네요. list index out of range 에러입니다. 제 생각에는 "주최사"라는 단어는 저희가 크롤링하고자 하는 데이터가 아닌데 저장이 되는 것 같군요.. "host" 데이터 크롤링 부분을 수정을 해야할 것 같습니다.

jangscon commented 3 years ago

버전차이로 beautifulsoup 4.9.3 버전을 사용하면 오류가 없습니다.

K-Minsu commented 3 years ago

감사합니다~ 다른 팀원분들도 bs4 버전 업데이트 부탁드립니다

$pip3 install beautifulsoup4==4.9.3