
This article is about installing Beautifulsoup. It is a Python library, which can scrape webpages and parse the HTML code.
Please check the prerequisites before starting.
- python
- pip
You can install Beautifulsoup by following these steps:
- open the command line and run the pip install command
pip install beautifulsoup4

2. Test Beatifulsoup by testing the following script in the python interpreter
from bs4 import BeautifulSoup
html_doc = """
<div><h1>quick start beautifulsoup :)</h1></div>
"""
soup = BeautifulSoup(html_doc, 'html.parser')
print(soup.prettify())

you’ll see the HTML tag element has been formatted beautifully