import requests
import lxml.html
# Make the request to the website
response = requests.get('http://example.com/')
# Parse the HTML content of the page
html = lxml.html.fromstring(response.text)
# Find all the <p> elements on the page
for p in html.cssselect('p'):
# Print the text of each element
print(p.text)
import lxml.html
# Make the request to the website
response = requests.get('http://example.com/')
# Parse the HTML content of the page
html = lxml.html.fromstring(response.text)
# Find all the <p> elements on the page
for p in html.cssselect('p'):
# Print the text of each element
print(p.text)