Python bs4.SoupStrainer()
사용 버전 : Python 3.6.8
사용 프로그램 : Atom 1.35.1 x64
bs4.SoupStrainer()는 태그를 선택할 수 있고, bs4.BeautifulSoup4()의 'parse_only' 속성에 사용됩니다.
<a> 태그만 보기.
<head> 태그만 보기.
<script> 태그만 보기.

위와 같이, 태그는 모두 선택할 수 있습니다.
끝.
카테고리: Python, bs4
사용 프로그램 : Atom 1.35.1 x64
파이썬 bs4.SoupStrainer()에 대해서 알아보겠습니다.
괄호 안에는 태그(tag)가 들어갑니다.
bs4.SoupStrainer()는 태그를 선택할 수 있고, bs4.BeautifulSoup4()의 'parse_only' 속성에 사용됩니다.
<a> 태그만 보기.


<head> 태그만 보기.


<script> 태그만 보기.


위와 같이, 태그는 모두 선택할 수 있습니다.
끝.
카테고리: Python, bs4
댓글
댓글 쓰기
궁금한 점은 댓글 달아주세요.
Comment if you have any questions.