Skip to main content

Library of web-related functions

Project description

https://secure.travis-ci.org/scrapy/w3lib.png?branch=master 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 2.7 or Python 3.3+

Install

pip install w3lib

Documentation

See http://w3lib.readthedocs.org/

License

The w3lib library is licensed under the BSD license.

Project details


Download files

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

Source Distribution

w3lib-1.15.0.tar.gz (48.3 kB view details)

Uploaded Source

Built Distribution

w3lib-1.15.0-py2.py3-none-any.whl (18.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: w3lib-1.15.0.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for w3lib-1.15.0.tar.gz
Algorithm Hash digest
SHA256 ff815f75a61d68076ca45670e2379ee8d3a6fa268999e534f3bfef76953705a2
MD5 ddf9d9ee3ea97ae0445ab6cecf058e02
BLAKE2b-256 746380ef4c14a8fefee2d36a7fa6e44dc2661ef6beaa86d44c755f1a1363d16e

See more details on using hashes here.

Provenance

File details

Details for the file w3lib-1.15.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for w3lib-1.15.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0dce15ef19b3328592c8b9fb97368780d570cf72d8c1a256ba03fa11424b0f7a
MD5 46596cac611df5e3d2c894b0bf509697
BLAKE2b-256 17a207a072acadcdae313743417ef65f7ef1231ff2babe0527df7020b8577466

See more details on using hashes here.

Provenance

Supported by

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