{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Converts HTML documents and HTML tables into JSON structures, optionally capturing element attributes, text values, and nested tags.","skillfed_tags":["html-parsing","data-extraction","web-scraping"],"use_cases":["Extract structured data from HTML tables on web pages and convert to JSON for further processing.","Parse HTML documents from web scraping operations and transform into JSON for storage or API responses.","Convert HTML-based reports or exports into JSON format for integration with downstream data pipelines.","Preserve HTML attributes and nested link structures when extracting table data by using record_html or record_children options.","Build data ingestion tools that accept HTML input and output standardized JSON for consumption by other services."],"what_it_does":"html-to-json is a Python library that transforms HTML markup into JSON structures. It provides two main conversion functions: one for general HTML documents that preserves element hierarchy, attributes, and text content, and another specialized for HTML tables that intelligently extracts rows and columns into JSON objects keyed by header names. The library depends on beautifulsoup4 for HTML parsing and supports modern Python versions from 3.10 onward.\n\nThe package handles three common table patterns: headers in the first row, headers in the first column, or no headers at all. For both HTML and table conversion, you can control what gets captured\u2014text values, attributes, nested tags as inner HTML, or nested tags as structured JSON\u2014via keyword arguments. This makes it useful for web scraping workflows, data extraction pipelines, and converting HTML reports into machine-readable formats.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a concrete problem\u2014converting HTML to JSON\u2014with a straightforward API. It's suitable for production use in web scraping and data extraction workflows where HTML tables or documents need to become JSON."},"id":"html-to-json","links":{"html":"https://skillfed.io/packages/html-to-json","md":"https://skillfed.io/packages/html-to-json.md","pypi":"https://pypi.org/project/html-to-json/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-13","license_spdx":null,"license_treatment":"permissive","name":"html-to-json","python_support":"supports_current","summary":"Convert html to json."},"popularity":{"monthly_downloads":321894,"position":7617,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.0"}
