Skip to main content

Library of web-related functions

Project description

https://secure.travis-ci.org/scrapy/w3lib.png?branch=master

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

Uploaded Source

Built Distribution

w3lib-1.8.1-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for w3lib-1.8.1.tar.gz
Algorithm Hash digest
SHA256 72aed22c77640eb2b3ea7c453e8cc50873c04825f4263272305d4c1afda5279b
MD5 940ca719887392da5e314323780ceb0a
BLAKE2b-256 205b6a1dc72311eca2111412996d5a387fe9261f60fb93a6f983a32ed38eb701

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for w3lib-1.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b0e4b98d053dcb15b41fd69dcf8ec4d232362837cb48b565e7c495a0117b2a1c
MD5 d4be519fce8979d374774d31ce863995
BLAKE2b-256 5477a7eaa26651cf47ece67b36885ebae9e1cd18eb42d669cf4444e0f796feea

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