Summary
In this chapter, we dealt with the various search methods in Beautiful Soup, such as find()
, find_all()
, and find_next()
. The different parameters that can be used with these methods were also explained with the help of sample code. Combinations of the different filters for the search methods and also finding the tags in relationships were also discussed in this chapter. We also looked at forming the logical structure and parsing strategy for finding all the information related to the book title from an online web page using the different search methods.
In the next chapter, we will learn the different navigation methods in Beautiful Soup.