{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"mf2py parses HTML documents to extract microformats2 data structures, with backwards compatibility for microformats1 and experimental metaformats support.","skillfed_tags":["indieweb","semantic-html","microformats"],"use_cases":["Extract author and publication metadata from blog posts marked with h-entry and h-card microformats.","Parse event listings (h-event) from calendar or conference websites to build aggregators or search indexes.","Validate that your own HTML markup correctly implements microformats2 before publishing.","Build IndieWeb applications that need to read contact cards (h-card) or social interactions (webmentions) from remote URLs.","Convert microformats-annotated HTML into JSON for downstream processing or storage in a database."],"what_it_does":"mf2py is a microformats parser that reads HTML and extracts structured data in JSON format. It recognizes microformats2 classes (like h-card, h-entry, h-event) and converts them into a standardized dictionary structure, making it easy to programmatically access semantic markup embedded in web pages. The library also supports the older microformats1 format and has experimental metaformats extraction.\n\nYou typically use mf2py when you need to consume or validate microformats-marked HTML\u2014common in IndieWeb applications, social media integrations, and semantic web tooling. It accepts HTML from files, strings, or URLs, and returns a dict with items, relationships, and metadata. The three runtime dependencies (html5lib, requests, beautifulsoup4) handle the heavy lifting of HTML parsing and network fetching.","worth_installing":"Yes, if you are working with microformats-marked HTML or building IndieWeb tooling. The package is stable, has no known vulnerabilities, and low install friction. However, dormant maintenance (980 days since last release) means you should not expect bug fixes or spec updates; use it only for stable, well-established microformats2 parsing tasks."},"id":"mf2py","links":{"html":"https://skillfed.io/packages/mf2py","md":"https://skillfed.io/packages/mf2py.md","pypi":"https://pypi.org/project/mf2py/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-12-08","license_spdx":null,"license_treatment":"permissive","name":"mf2py","python_support":"supports_current","summary":"Microformats parser"},"popularity":{"monthly_downloads":562651,"position":5986,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.1"}
