import requests
from bs4 import BeautifulSoup
# Define the website to search
url = 'https://www.example.com'
# Define the search term
search_term = 'example'
# Send a GET request to the website
response = requests.get(url)
# Parse the HTML content using BeautifulSoup
soup = BeautifulSoup(response.content, 'html.parser')
# Find all instances of the search term in the HTML content
matches = soup.find_all(text=lambda text: text and search_term.lower() in text.lower())
# Print the matches
print(matches)