Overview
This is a Python 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
convert raw HTTP headers to dicts and vice-versa
construct HTTP auth header
converting HTML pages to unicode
sanitize urls (like browsers do)
extract arguments from urls
Requirements
Python 3.10+
Install
pip install w3lib
Documentation
License
The w3lib library is licensed under the BSD license.
Release files for w3lib 2.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| w3lib-2.4.1.tar.gz | 48.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| w3lib-2.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.2 kB
Release files / w3lib-2.4.1.tar.gz
| Download URL | w3lib-2.4.1.tar.gz |
|---|---|
| Size | 48.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dd69ee39ff6398d708c793abc779c334a69bac7cee1cdf71736c669ed6be864
|
|
BLAKE2b-256 checksum How to use checksums |
c091b2eb59c2cf243de5de1e91c963655df78c015509f51297685a8c86a27b8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.
Transparency logRelease files / w3lib-2.4.1-py3-none-any.whl
| Download URL | w3lib-2.4.1-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40930132907e68de906a5b89331ab8c8ff4f01bd35b5539ef7896017d814138d
|
|
BLAKE2b-256 checksum How to use checksums |
66c3f8b216cbd742e5b84c40f045204c764ccb7524d2aeab021054ec69446b0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.
Transparency log