This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !pip install beautifulsoup4 | |
from bs4 import BeautifulSoup | |
bs_obj = BeautifulSoup(html_str, 'html.parser') # 부연설명 | |
head = bs_obj.find('head') | |
print(head) | |
## HEAD 찾기 | |
head = bs_obj.find('head') | |
# `find()`로 생성된 결과물은 `Tag`라는 클래스의 객체(object) |