How To Install python36-beautifulsoup4 on CentOS 7

In this tutorial we learn how to install python36-beautifulsoup4 on CentOS 7. python36-beautifulsoup4 is HTML/XML parser for quick-turnaround applications like

Introduction

In this tutorial we learn how to install python36-beautifulsoup4 on CentOS 7.

What is python36-beautifulsoup4

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. This is the Python 3 build of Beautiful Soup.

We can use yum or dnf to install python36-beautifulsoup4 on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python36-beautifulsoup4.

Install python36-beautifulsoup4 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python36-beautifulsoup4 using yum by running the following command:

sudo yum -y install python36-beautifulsoup4

Install python36-beautifulsoup4 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 python36-beautifulsoup4 using dnf by running the following command:

sudo dnf -y install python36-beautifulsoup4

How To Uninstall python36-beautifulsoup4 on CentOS 7

To uninstall only the python36-beautifulsoup4 package we can use the following command:

sudo dnf remove python36-beautifulsoup4

References

Summary

In this tutorial we learn how to install python36-beautifulsoup4 on CentOS 7 using yum and dnf.