from bs4 import BeautifulSoup
import requests
pageResponse = requests.get("url").text
soup = BeautifulSoup(pageResponse, "html.parser")
print(soup.prettify())
from bs4 import BeautifulSoup
with open("index.html") as fp:
soup = BeautifulSoup(fp)
soup = BeautifulSoup("<html>a web page</html>")