Skip to content

Instantly share code, notes, and snippets.

# !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)