w3lib (2.3.1)

Published 2026-02-24 14:14:38 +00:00 by atheaadmin

Installation

pip install --index-url  w3lib

About this package

Library of web-related functions

===== w3lib

.. image:: https://github.com/scrapy/w3lib/actions/workflows/tests.yml/badge.svg :target: https://github.com/scrapy/w3lib/actions

.. image:: https://img.shields.io/codecov/c/github/scrapy/w3lib/master.svg :target: http://codecov.io/github/scrapy/w3lib?branch=master :alt: 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.9+

Install

pip install w3lib

Documentation

See http://w3lib.readthedocs.org/

License

The w3lib library is licensed under the BSD license.

Requirements

Requires Python: >=3.9
Details
PyPI
2026-02-24 14:14:38 +00:00
0
Scrapy project
BSD
21 KiB
Assets (1)
Versions (1) View all
2.3.1 2026-02-24