How To Install python3-w3lib on Fedora 36

In this tutorial we learn how to install python3-w3lib in Fedora 36. python3-w3lib is Library of web-related functions

Introduction

In this tutorial we learn how to install python3-w3lib on Fedora 36.

What is python3-w3lib

This is a Python3 library of web-related functions, such as - Remove comments, or tags from HTML snippets - Extract base url from HTML snippets - Translate entites on HTML strings - Encoding mulitpart/form-data - Convert raw HTTP headers to dicts and vice-versa - Construct HTTP auth header - Converting HTML pages to unicode - RFC-compliant url joining - Sanitize urls (like browsers do) - Extract arguments from urls

We can use yum or dnf to install python3-w3lib on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-w3lib.

Install python3-w3lib on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-w3lib using dnf by running the following command:

sudo dnf -y install python3-w3lib

Install python3-w3lib on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-w3lib

How To Uninstall python3-w3lib on Fedora 36

To uninstall only the python3-w3lib package we can use the following command:

sudo dnf remove python3-w3lib

python3-w3lib Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/w3lib
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/w3lib-1.17.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/w3lib/__init__.py
/usr/lib/python3.10/site-packages/w3lib/__pycache__
/usr/lib/python3.10/site-packages/w3lib/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/encoding.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/encoding.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/form.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/form.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/html.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/html.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/http.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/http.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/url.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/url.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/w3lib/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/w3lib/encoding.py
/usr/lib/python3.10/site-packages/w3lib/form.py
/usr/lib/python3.10/site-packages/w3lib/html.py
/usr/lib/python3.10/site-packages/w3lib/http.py
/usr/lib/python3.10/site-packages/w3lib/url.py
/usr/lib/python3.10/site-packages/w3lib/util.py
/usr/share/doc/python3-w3lib
/usr/share/doc/python3-w3lib/README.rst
/usr/share/licenses/python3-w3lib
/usr/share/licenses/python3-w3lib/LICENSE-w3lib

References

Summary

In this tutorial we learn how to install python3-w3lib on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).