bs4 import beautifulsoup python code example
Example 1: python bs4 install
pip install bs4 #this'll do the work
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>")