skillfed

HTMLParser

Backport of HTMLParser from python 2.7

htmlparser v0.0.2 197.7K downloads/30d#9,750 on PyPI4
Permissive license BSD Abandoned released

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 htmlparser

uv

uv add htmlparser

poetry

poetry add htmlparser

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python

Tags

html parser python 2.6htmlparser backportparse html python 2html parsing librarypython 2.7 htmlparserhtml document parsing
python2-legacyabandoned

More HTML packages