강의

멘토링

커뮤니티

Inflearn Community Q&A

pbrinhispower5186's profile image
pbrinhispower5186

asked

[Python in Practice] Web Crawling and Data Analysis: Analysis of the Transfer Fees of Football Players Worldwide

Ta-da! Finally, real crawling!

player_info =soup.find_all('tr' ) 로 선수 정보를 뽑지 않은 이유

Written on

·

230

0

선수들 관련 정보를 뽑을때 tr 만으로 아래 처럼 뽑지 않고

player_info =soup.find_all('tr' )

 

왜 아래처럼 odd랑 even 까지 써주어야 하나요?

player_info =soup.find_all('tr', class_ = [ 'odd','even'] )

 

제가 생각한 이유 : TR이 들어간 모든 정보를 가져오면, 필요없는것도 많으니까, 더 디테일하게 내가 원하는 odd와 even 이 들어간것만 뽑기 위해서인가요? 하지만 tr만으로 뽑앗을때나, even,odd를 넣어서 뽑앗을때 결과를 보면, 둘다 엄청 복잡하게 나오기 때문에, tr로 뽑았을때 불필요한 정보도 많이 뽑혔다라고 알기가 어렵기 때문에 왜 그러셨는지 이유를 알고 싶습니다

beautifulsouppython웹-크롤링pandas

Answer

This question is waiting for answers
Be the first to answer!
pbrinhispower5186's profile image
pbrinhispower5186

asked

Ask a question