import requests from bs4 import BeautifulSoup url = 'https://example.com' response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') # Extracting data from HTML title = soup.title.text paragraphs = soup.find_all('p') # Printing the extracted data print('Title:', title) print('Paragraphs:') for p in paragraphs: print(p.text) __ __