Week 6 • Wednesday

Block 55: BeautifulSoup: HTML Parsing Basics

Parse and navigate HTML documents to extract data.

Concepts

Code Examples

See exercise below.

Exercise

Fetch a static web page and print all <h2> headings. Extract all hyperlinks from a page and store in a list.

Homework

What is the difference between find() and find_all()? When does each return None?