liveBook · Manning

Beautiful Soup

Beautiful Soup is a Python library for parsing HTML and XML documents, navigating their parsed structures, and extracting or modifying their contents.

How 2 Manning books explain it

Effective Data Analysis

BeautifulSoup is a Python library for parsing HTML and XML documents into navigable object trees.

How it is used
Supports web scraping when HTML pages must be converted into analysis-ready records.
How deep it goes
Explains tree navigation, tag and class selection, attribute extraction, dataframe creation, type conversion, and aggregation.
Examples
Uses a weather forecast and a Books to Scrape exercise involving titles, metadata, pagination, data types, and competitor analysis.
What you can do after
Builds structured data from selected HTML tags and attributes using Python, then prepares extracted values for analysis.

Read how Effective Data Analysis explains Beautiful Soup →

The Quick Python Book, Fourth Edition

Beautiful Soup is a Python library for parsing HTML and XML documents and navigating their parsed trees.

How it is used
Supports web scraping by parsing retrieved HTML and extracting targeted content.
How deep it goes
Explains parser construction, tag searches, indexing, text, attributes, and class selection, but not advanced parser behavior.
Examples
Uses test.html, an anchor element, a special span, and short expressions for retrieving text and attributes.
What you can do after
Apply Beautiful Soup to parse retrieved HTML and extract links, visible text, attributes, and class-selected elements.

Read how The Quick Python Book, Fourth Edition explains Beautiful Soup →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.