인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

creep133's profile image
creep133

asked

[New Revised Edition] This is Real Crawling - Practical Edition (Artificial Intelligence Monetization)

How to control multiple tags

정적페이지크롤링 selenium이용 vs BeautifulSoup 차이점

Written on

·

43

0

정적페이지 크롤링의 경우
1) BeautifulSoup에서 select, select_one 함수를 이용하여 태그를 찾고 이를 제어하는 방법으로 이해했고요

2) Selenium에서 find_element, find_element함수를 이용하여 태그를 찾고 이를 제어하는 방법으로 이해했습니다.

위 두가지 방법 중에 근본적인 차이가 있나요?

(동적페이지의 경우 selenium이 필요하다는 것은 다음 강의를 통해서 이해했습니다.)

 

Answer 1

0

startcoding님의 프로필 이미지
startcoding
Instructor

안녕하세요 스타트코딩입니다!

 

두 방식에는 핵심적인 차이점이 있죠.

BeautifulSoup는 변하지않는(고정된) html 을 파싱해서 태그를 추출하는 거라고 보면 되고,

Selenium은 실제로 구동되고 있는 웹브라우저에서 태그를 추출하는 거라고 보면 됩니다.

creep133's profile image
creep133

asked

Ask a question