BeautiFul Soup find()

Estimated reading: 1 minute 722 views

Find () method

The find method is used for finding out the first tag with the specified name or id and returning an object of type bs4.

					import requests
from bs4 import BeautifulSoup
URL= ""
page = requests.get(URL)
soup = BeautifulSoup(page.content,"html")
get_anchoe_value = soup.find("a")


Leave a Comment