How To Install python-BeautifulSoup on CentOS 7
Introduction
In this tutorial we learn how to install python-BeautifulSoup on CentOS 7.
What is python-BeautifulSoup
Beautiful Soup is a Python HTML/XML parser designed for quick turnaround projects like screen-scraping. Three features make it powerful Beautiful Soup won’t choke if you give it bad markup. Beautiful Soup provides a few simple methods and Pythonic idioms for navigating, searching, and modifying a parse tree. Beautiful Soup automatically converts incoming documents to Unicode and outgoing documents to UTF-8. Beautiful Soup parses anything you give it. Valuable data that was once locked up in poorly-designed websites is now within your reach. Projects that would have taken hours take only minutes with Beautiful Soup.
We can use yum or dnf to install python-BeautifulSoup on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-BeautifulSoup.
Install python-BeautifulSoup on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install python-BeautifulSoup using yum by running the following command:
sudo yum -y install python-BeautifulSoup
Install python-BeautifulSoup on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install python-BeautifulSoup using dnf by running the following command:
sudo dnf -y install python-BeautifulSoup
How To Uninstall python-BeautifulSoup on CentOS 7
To uninstall only the python-BeautifulSoup package we can use the following command:
sudo dnf remove python-BeautifulSoup
References
Summary
In this tutorial we learn how to install python-BeautifulSoup on CentOS 7 using yum and dnf.