jhy/jsoup
jsoup: the Java HTML parser, built for HTML editing, cleaning, scraping, and XSS safety. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 62
- age_days: 6102
- days_rel: 8
- days_push: 7
- n_releases_24m: 10
Adoption not part of the score
11387 stars · 2294 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
jsoup is a Java library for parsing, manipulating, and cleaning real-world HTML and XML, implementing the WHATWG HTML5 specification to produce the same DOM as modern browsers. It provides URL fetching, CSS selector and XPath-based data extraction, DOM manipulation, and safelist-based HTML sanitization to prevent XSS attacks.
Use cases
- scrape and extract data from web pages in Java
- parse messy real-world HTML into a DOM tree
- sanitize user-submitted HTML to prevent XSS
- extract elements using CSS selectors or XPath
- fetch and parse a URL's HTML content
- clean and tidy up HTML output
- manipulate HTML elements and attributes programmatically
When to choose
- you need a robust, spec-compliant HTML parser on the JVM
- you are building a web scraper or crawler in Java or Kotlin
- you need to sanitize untrusted HTML against XSS in a Java application
- you want browser-like parsing of invalid tag-soup HTML
- you are working on Android and need HTML parsing
When to avoid
- you need a full headless browser with JavaScript execution
- you are parsing JSON or other non-HTML data formats
- you need a general-purpose XML validator or XSLT processor
- your project is not on the JVM
Facets
library · maturity stable
parser web-scraping security http-client web-development parsers crawlers security jvm html-parser css-selectors xss-sanitization dom-manipulation html5 xml android
5 sources
- readme: https://github.com/jhy/jsoup · fetched 2026-08-28 · 7fd2bfe38762
- homepage: https://jsoup.org · fetched 2026-08-29 · 51426ea1a2f9
- site_page: https://jsoup.org/apidocs · fetched 2026-08-29 · c5a7fa8db664
- site_page: https://jsoup.org/apidocs/org/jsoup/nodes/Element · fetched 2026-08-29 · faa8750f0f11
- site_page: https://jsoup.org/apidocs/org/jsoup/select/Elements · fetched 2026-08-29 · 7f449012ae97
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jhy/jsoup | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem