scinfu/SwiftSoup
Some data may be outdated — see provenance labels.
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS) observed · 2026-09-28
Health v2 · maintenance only
95/100
- Activity 96
- Release rhythm 92
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 7.0
- age_days: 3623
- days_rel: 54
- days_push: 25
- n_releases_24m: 35
Adoption not part of the score
5126 stars · 403 forks observed · 2026-09-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SwiftSoup is a pure Swift HTML parser library that conforms to the WHATWG HTML5 specification and offers DOM traversal, CSS selectors, and jQuery-like APIs. It supports parsing, scraping, modifying, and sanitizing HTML across macOS, iOS, tvOS, watchOS, and Linux.
Use cases
- parse html from a string or file in swift
- scrape data from web pages using css selectors
- extract links and text from html documents
- sanitize user-submitted html to prevent xss
- clean up messy tag soup html into a valid parse tree
- modify html elements and attributes programmatically
When to choose
- you need HTML parsing in a Swift project on Apple platforms or Linux
- you want a pure Swift solution with no C dependencies
- you need jQuery-style selectors and DOM manipulation
- you must sanitize untrusted HTML input
When to avoid
- your project is not in Swift
- you need JavaScript execution or a full browser engine
- you only need XML parsing rather than HTML
Facets
library · maturity stable
parser web-scraping security web-development parsers developer-tools cross-platform html-parsing css-selectors dom jquery-like xss-sanitization whatwg-html5 swift-package-manager macos ios linux swift
2 sources
- readme: https://github.com/scinfu/SwiftSoup · fetched 2026-09-28 · 9fc0b47b71ed
- homepage: https://scinfu.github.io/SwiftSoup/ · fetched 2026-08-29 · 824a35e51694
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| scinfu/SwiftSoup | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="scinfu/SwiftSoup")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem