# topfunky/hpple

An XML/HTML parser for Objective-C, inspired by Hpricot.

Repository: https://github.com/topfunky/hpple
Canonical: https://ross.abutalabs.com/products/hpple
Homepage: http://topfunky.com
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2021-07-15T04:18:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6423, "days_push": 1875, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2799, forks 464 (observed 2026-08-28T04:07:22.508818+00:00)

## What it is
Hpple is an Objective-C wrapper around the XPathQuery libxml2 library for parsing HTML and searching it with XPath expressions. It was inspired by Ruby's Hpricot and provides easy access to element text, tag names, and attributes.

## Use cases
- parse HTML in an iOS app
- scrape web page content with XPath queries
- extract links and attributes from HTML documents
- query HTML elements by XPath in Objective-C
- parse HTML data returned from an HTTP request

## When to choose
- you are building an older Objective-C iOS or macOS app that needs lightweight HTML parsing with XPath
- you want a small, dependency-light parser built on libxml2
- you are maintaining a legacy codebase that already uses Hpple

## When to avoid
- you need CSS selectors rather than XPath
- you need actively maintained, modern Swift tooling
- you need robust XML parsing or error handling, which are still listed as TODO
- you are starting a new project, since better-maintained alternatives exist

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, web-scraping
- domain: parsers, web-development, developer-tools
- platform: cpp
- tags: objective-c, html-parsing, xpath, libxml2, cocoa, ios, macos

## Member repositories
- topfunky/hpple (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:22.508818+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:14:37.292311+00:00, confidence not recorded.
  - readme: https://github.com/topfunky/hpple (fetched 2026-08-28T04:07:22.508818+00:00, sha 40dfbbe3bdf7)
  - homepage: http://topfunky.com (fetched 2026-08-29T09:54:44.070611+00:00, sha 8a7bad90b955)
- Data as of 2026-08-30T08:39:29.467469+00:00.
