
✅ BeautifulSoup란?
BeautifulSoup는 Python에서 HTML이나 XML 문서를 파싱(parse)해서 원하는 데이터를 쉽게 추출하도록 도와주는 라이브러리다.
주로 웹 스크래핑(web scraping) 할 때 사용된다.
<Usage>
import requests
from bs4 import BeautifulSoup
url = "https://weworkremotely.com/categories/remote-full-stack-programming-jobs"
response = requests.get(url)
soup = BeautifulSoup(response.content, "html.parser")
jobs = soup.find("section", class_="jobs").find_all("li")
print(jobs)
CSS selector 사용
BeautifulSoup는 CSS selector도 지원한다.
soup.select("p.content")
soup.select("div > a")
parser

'📂 라이브러리' 카테고리의 다른 글
| 라이브러리 - Flask (0) | 2026.03.16 |
|---|---|
| 라이브러리 - Playwright (0) | 2026.03.13 |
| 라이브러리 - Victory Native (0) | 2026.02.26 |
| 라이브러리 - Realm (0) | 2026.02.24 |
| 라이브러리 - TanStack Query(React Query) (0) | 2026.02.03 |