Introduction to Beautiful Soup

Beautiful Soup is a Python library that's used to pull data out of HTML and XML files. It is useful with projects that involve scraping. With this library, we can navigate, search, and modify the HTML and XML files.

This library parses anything you feed in and does tree traversal work on the data. You can ask the library to find all the links whose URLs match google.com, find all the links with class bold URLs, or find all the table headers with bold text.

There are a few features that makes it useful, and they are as follows:

  1. Beautiful Soup provides us with some simple methods and Pythonic idioms to navigate, search, and modify a parse tree, which is a toolkit that is used to dissect a document and then ...

Get Mobile Artificial Intelligence Projects 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.