HTMLParser
Backport of HTMLParser from python 2.7
What it is and what it does
HTMLParser is a backport of Python 2.7's HTMLParser module intended for use in Python 2.6 environments. It provides HTML parsing capabilities without external dependencies. The package was created as a compatibility shim during the Python 2 era and has not been maintained since 2013-03-01.
This package is obsolete for modern development. It targets Python 2.6, and the repository is archived. Installing this package would only be necessary in legacy codebases that cannot upgrade, which is an extremely narrow use case.
Use it for:
- Maintaining legacy Python 2.6 code that requires HTMLParser but cannot upgrade
- Reproducing or debugging historical Python 2.6 applications in their original environment
- Academic study of Python 2 era HTML parsing approaches
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides HTMLParser from Python 2.7 as a backport for Python 2.6 environments to parse HTML documents.
No. This package is abandoned (last updated 2013-03-01) and targets Python 2.6. The repository is archived. Install only if you are maintaining legacy Python 2.6 code that cannot be upgraded—a scenario that should be extremely rare.
Install
htmlparser on PyPI
pip
pip install htmlparseruv
uv add htmlparserpoetry
poetry add htmlparserInstalling HTMLParser
Before you install
High install friction and abandoned maintenance status. Last release was 2013-03-01 with no updates since; the repository is archived.
License in practice
BSD license (permissive) imposes no significant restrictions on use or redistribution.
Quickstart
pip install HTMLParser==0.0.2
import HTMLParser
parser = HTMLParser.HTMLParser()
Requires Python 2.6 or 2.7; not compatible with Python 3
Verify before relying
- Whether this package actually works with modern Python versions or is strictly limited to Python 2.6/2.7
- Current viability for any active use cases beyond legacy Python 2.6 maintenance
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,914 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 197,724/month — #9,750 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: HTMLParser-0.0.2.tar.gz
Tags
More HTML packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
beautifulsoup4Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
lxmllxml provides Python bindings to libxml2 and…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
MarkdownConverts Markdown text to HTML using a Python…
permissive · top 1,000 on PyPI
configparser2Backport of Python 3's configparser module to…
permissive · top 15,000 on PyPI
traceback2Provides a backport of Python's traceback…
permissive · top 5,000 on PyPI
multiprocessingBackport of Python 2.6/3.0 multiprocessing to…
permissive · top 15,000 on PyPI
linecache2Provides a backport of Python's linecache…
permissive · top 5,000 on PyPI
textwrap3Backports Python 3.6's textwrap module to…
permissive · top 5,000 on PyPI
backports.csvProvides Python 3's csv module API for Python…
unclear · top 15,000 on PyPI
futuresBackport of Python 3's concurrent.futures…
permissive · top 5,000 on PyPI
configparserProvides an updated ConfigParser implementation…
permissive · top 5,000 on PyPI
readability-lxmlExtracts and cleans the main article text and…
permissive · top 5,000 on PyPI
weakrefmethodProvides a WeakMethod class for storing bound…
permissive · top 15,000 on PyPI