Learn Before
Concept

Beautiful Soup find() Function

With the find() function, people are able to search for anything on a web page. Below are examples of how to use the find() function:

title = soup.find(id="productTitle").get_text() price = soup.find(id="priceblock_ourprice").get_text()

find() returns the first instance of your search parameter in the HTML/XML file and returns None if nothing is found.

0

1

Updated 2021-05-18

Tags

Python Programming Language

Data Science