beautifulsoup4
Package — ScrapingPython 3.6+Beginner
HTML/XML parser for extracting data from web pages
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.6+
- Dependencies
- soupsieve; optional: lxml, html5lib
- Install
pip install beautifulsoup4
Learn by Difficulty
Quick Example
python
import bs4 print(f"beautifulsoup4 loaded successfully") print(f"Version: {getattr(bs4, '__version__', 'unknown')}")
beautifulsoup4 is a third-party package. HTML/XML parser for extracting data from web pages. Install with: pip install beautifulsoup4
Try in PlaygroundTags
packageweb-scrapinghtmlparsingdata-extraction
Related Items
lxml
Package — Scraping
Fast XML and HTML parsing with XPath and XSLT support
requests
Package — HTTP
Simple HTTP library for GET, POST, PUT, DELETE requests
scrapy
Package — Scraping
Full-featured web crawling and scraping framework
selenium
Package — Scraping
Browser automation for testing and scraping dynamic JS pages
parsel
Package — Scraping
Scrapy's selector library standalone; CSS and XPath selectors on HTML/XML
html.parser
Stdlib — Networking
Simple HTML and XHTML parser