Import request
Import BeautifulSoup from bs4.
# URL of the target website
url = " "
# Initiate a request and get the web page content
response = requests.get(url)
html_content = response.text
# Use BeautifulSoup to parse web content
soup = beautiful soup(html _ content,“html.parser”)
# Found target element
Contacts = soup.find _ all ("div ",class _ = "contact-info") # Assume that the class attribute of the target element is" contact-info ".
# Output contact information
For contacts among contacts:
Contact Information = Contact. Text
Print (contact information)