# jsoup

> Java library for parsing, scraping, cleaning and editing real-world HTML and XML

Source: https://talira.ai/catalog/jsoup-zq0venhc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / xml html](https://talira.ai/categories/developer-tools/parsing/xml-html), [data / scraping / libraries](https://talira.ai/categories/data/scraping/libraries), [security / html sanitization](https://talira.ai/categories/security/html-sanitization)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Jonathan Hedley](https://talira.ai/orgs/jonathan-hedley.md)

jsoup is a Java library for working with real-world HTML and XML. It implements the WHATWG HTML5 specification and parses HTML to the same DOM as modern browsers, from a URL, a file or a string, even when the markup is invalid tag soup. It finds and extracts data with DOM traversal, CSS selectors and XPath, changes elements, attributes and text, cleans user-submitted HTML against a safelist to prevent XSS, and writes tidy HTML.

## Links

- Website: https://jsoup.org
- GitHub: https://github.com/jhy/jsoup
- Docs: https://jsoup.org/cookbook/introduction/parsing-a-document

## Problems it solves

- scrape data from web pages in Java
- parse messy, invalid HTML into a DOM in a JVM app
- sanitize user-submitted HTML in Java to prevent XSS

## Features

- Parses HTML to the same DOM as browsers, following the WHATWG HTML5 spec
- Fetches and parses pages from a URL, a file or a string
- CSS selectors and XPath for finding elements
- Edits elements, attributes and text
- Cleans user-submitted HTML against a safelist to prevent XSS
- Outputs tidy HTML

## Limitations

- On Android, needs core library desugaring with the NIO specification[^1]

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 1.00, adoption 0.81, momentum 0.53, community 0.86, backing 0.30, extensibility 0.00.

- last commit 27 days ago
- 68 commits in the last 90 days
- latest release jsoup-1.24.1 28 days ago
- 11.4k GitHub stars
- 137 contributors
- accepts sponsorship (Github)
- backed by Jonathan Hedley

## Sources

[^1]: https://github.com/jhy/jsoup/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/jhy/jsoup/blob/master/LICENSE (checked 28 Nov 2026)
