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.14.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

w3lib-1.14.0-py2.py3-none-any.whl (15.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for w3lib-1.14.0.tar.gz
Algorithm Hash digest
SHA256 8f2fbc8daec1e5d3a27b219260598741ee6f4088b2d1b162690e1c5243fbf8dc
MD5 9d3b258ee398ec2f8c73f4d4c4c0de57
BLAKE2b-256 86c3b69c355834b598f52f65990901f5a4440ee5530b7088f0e0f81349fef737

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for w3lib-1.14.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fa0561438ad439a75346fe7fd4e8e20d4f194bf31257154f0db12198e9d1e930
MD5 f57a1c2dd5b720e8139e7e958385b52c
BLAKE2b-256 ce21e033766d5e0e666e98c46f5f90f789db48a0ff9fd088b7f69bcf147afcff

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