install beautifulsoup4 or bs4 code example
Example 1: beautifulsoup4 install
pip install beautifulsoup4
Example 2: beautiful soup 4
from bs4 import BeautifulSoup
with open("index.html") as fp:
soup = BeautifulSoup(fp)
soup = BeautifulSoup("<html>a web page</html>")