Summary

In this chapter, we discussed the various navigation techniques in Beautiful Soup. We have discussed four ways of navigation, that is, navigating up, down, sideways, next, and before elements with the help of examples.

In the next chapter, we will learn about the different ways to modify the parsed HTML tree by adding new contents, for example, tags, strings, modifying tags, and deleting existing ones.

Get Getting Started with Beautiful Soup now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.