$npx skillfedfor your agent

soup2dict

Turns your beautifulsoup4 soup into python dictionary or json

With conditionsPyPI Python ModulesReleased Dec 202197.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — soup2dict-2.1.0-py3-none-any.whl
v2.1.0 · released 2021-12-26 · Python >=3.7,<4.0 · 2 runtime deps: classes, beautifulsoup4

Yes, if you need a simple one-way HTML-to-dict converter and can tolerate an abandoned package. The code is stable (no known vulnerabilities, low install friction), but you will receive no updates if beautifulsoup4 introduces breaking changes or if you encounter edge-case bugs. Suitable for small scripts or legacy projects; avoid for new production systems where long-term maintenance is required.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation with a pure-Python wheel.
  • The package is abandoned (last commit 2021-12-26) and has received no updates in over 1692 days, so expect no maintenance response to issues or compatibility problems with newer beautifulsoup4 versions.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the code provided you retain the license notice.

last release 2021-12-26 (1692 days) · last repo commit 2021-12-26 · 6 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 97,062 downloads/mo, #13,173 on PyPI

Verify before relying

pip install soup2dict

from soup2dict import convert
from beautifulsoup4 import BeautifulSoup

soup = BeautifulSoup('<p>Hello</p>', 'html.parser')
dict_result = convert(soup)
  • Whether the package handles malformed HTML gracefully or what error modes occur with edge-case inputs.
  • Performance characteristics when converting large or deeply nested HTML structures.
  • Compatibility with beautifulsoup4 versions released after 2021-12-26.
Same gist for agents: .md · .json

What it is and what it does

soup2dict is a lightweight wrapper that transforms parsed HTML or XML into nested Python dictionaries. It preserves document structure by mapping element tags to dictionary keys, attributes to prefixed keys (e.g., '@href'), text content to '#text' keys, and child elements to lists. The output can be serialized directly to JSON.

The package depends on beautifulsoup4 and classes. It targets Python 3.7 through 3.10 and is classified as Beta. Because the project has been abandoned since late 2021 with no maintenance activity, it will not receive updates for newer beautifulsoup4 releases or Python versions, and any bugs discovered will remain unfixed.

Use it for

  • Convert parsed HTML into JSON for REST API responses or data export pipelines.
  • Transform web-scraped HTML structures into dictionaries for downstream processing or storage.
  • Serialize XML documents parsed by beautifulsoup4 into nested dict format for configuration or data interchange.
  • Build data transformation workflows where HTML/XML input must be normalized to dict/JSON intermediate format.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a simple one-way HTML-to-dict converter and can tolerate an abandoned package.

The code is stable (no known vulnerabilities, low install friction), but you will receive no updates if beautifulsoup4 introduces breaking changes or if you encounter edge-case bugs. Suitable for small scripts or legacy projects; avoid for new production systems where long-term maintenance is required.

Install

soup2dict on PyPI

Before you install

Low friction installation with a pure-Python wheel. The package is abandoned (last commit 2021-12-26) and has received no updates in over 1692 days, so expect no maintenance response to issues or compatibility problems with newer beautifulsoup4 versions.

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the code provided you retain the license notice.

Quickstart

pip install soup2dict

from soup2dict import convert
from beautifulsoup4 import BeautifulSoup

soup = BeautifulSoup('<p>Hello</p>', 'html.parser')
dict_result = convert(soup)

Verify before relying

  • Whether the package handles malformed HTML gracefully or what error modes occur with edge-case inputs.
  • Performance characteristics when converting large or deeply nested HTML structures.
  • Compatibility with beautifulsoup4 versions released after 2021-12-26.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7,<4.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
classesbeautifulsoup4
MaintenanceAbandoned 1,692 days since the last release
Last repo commit
First released
Downloads97,062 / month, #13,173 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Evidence: soup2dict-2.1.0-py3-none-any.whl

Tags

Capabilities
beautifulsoup to dicthtml to dictionary conversionsoup to jsonbeautifulsoup4 serializationparse html to dictxml to python dicthtml structure to json
Topics
html-parsingdata-transformationserialization
PyPI keywords
beautifulsoup to dictbeautifulsoup to jsonbeautifulsoup4data transformationhtml to dictxml to dictdictjson

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “beautifulsoup to dict”

  • soup2dictConverts BeautifulSoup4 parsed HTML or XML objects into Python…
  • pysubtypesProvides enhanced subclasses for Python builtins (str, list, dict)…
  • prettierfierReformats HTML and XML strings with intelligent inline-tag handling,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also beautifulsoup4 · BeautifulSoup · dict2xml · markdownify · xmltojson · dicttoxml · html-to-json · prettierfier · simplejson · data-to-xml