skip to navigation
skip to content

Not Logged In

w3lib 1.12.0

Library of web-related functions


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


Python 2.7 or Python 3.3+


pip install w3lib




The w3lib library is licensed under the BSD license.

File Type Py Version Uploaded on Size
w3lib-1.12.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2015-07-29 14KB
w3lib-1.12.0.tar.gz (md5) Source 2015-07-29 34KB
  • Downloads (All Versions):
  • 1484 downloads in the last day
  • 9448 downloads in the last week
  • 55202 downloads in the last month