Skip to content
J

Jsoup

The Java HTML parser, built for HTML editing, cleaning, scraping

by jhyFree

#91in Photo & Video
0In stores

Description

jsoup is an open-source Java library for working with real-world HTML and XML. It fetches a URL, reads a file or a string, and parses it int…

Highlights

  • Parse HTML from URL, file or string
  • CSS selectors and DOM methods
  • WHATWG HTML5 parsing
  • Safelist-based HTML cleaning
  • Tidy HTML output
  • Android support

Ratings & Reviews

No ratings yet

Be the first to rate Jsoup.

People also visit

J

Java Html Sanitizer

Takes third-party HTML and produces HTML

Utilities
Launch
L

Lol Html

Low output latency streaming HTML parser/rewriter with CSS selector-based API

Entertainment
Launch
S

Scrape It

A Node.js scraper for humans

Utilities
Launch
P

PHPScraper

A universal web-util for PHP

Utilities
Launch
N

Nokolexbor

High-performance HTML5 parser for Ruby based on Lexbor

Utilities
Launch
S

Selectolax

Python binding to Modest and Lexbor engines

Utilities
Launch

Jsoup FAQ

What is jsoup?

An open-source Java library for parsing, extracting, changing and cleaning HTML and XML.

How does it parse messy HTML?

The site says it follows the WHATWG HTML5 specification and builds the same DOM as modern browsers, so invalid markup still gets a sensible tree.

Can it clean user input?

Yes. It cleans HTML against a safelist to help prevent cross-site scripting.

Can I use it on Android?

Yes. The site has an Android support section.

How do I find data in a page?

With DOM traversal or CSS selectors, and the site gives XPath support.

Where is the source and documentation?

On GitHub under jhy, with a cookbook and API reference on jsoup.org.

What are the best Jsoup alternatives?

Popular alternatives to Jsoup include PhantomJsCloud and FromJS. See all Jsoup alternatives

Developer Stuff

Badges