Skip to main content

Library of web-related functions

Project description

https://github.com/scrapy/w3lib/actions/workflows/tests-ubuntu.yml/badge.svg Coverage report

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

See http://w3lib.readthedocs.org/

License

The w3lib library is licensed under the BSD license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

w3lib-2.4.1.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

w3lib-2.4.1-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file w3lib-2.4.1.tar.gz.

File metadata

  • Download URL: w3lib-2.4.1.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for w3lib-2.4.1.tar.gz
Algorithm Hash digest
SHA256 8dd69ee39ff6398d708c793abc779c334a69bac7cee1cdf71736c669ed6be864
MD5 11b4a00c75a723fd3e5623b8b8214de0
BLAKE2b-256 c091b2eb59c2cf243de5de1e91c963655df78c015509f51297685a8c86a27b8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for w3lib-2.4.1.tar.gz:

Publisher: publish.yml on scrapy/w3lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file w3lib-2.4.1-py3-none-any.whl.

File metadata

  • Download URL: w3lib-2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for w3lib-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40930132907e68de906a5b89331ab8c8ff4f01bd35b5539ef7896017d814138d
MD5 983f171f790207738f592958d458643b
BLAKE2b-256 66c3f8b216cbd742e5b84c40f045204c764ccb7524d2aeab021054ec69446b0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for w3lib-2.4.1-py3-none-any.whl:

Publisher: publish.yml on scrapy/w3lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page