Jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers do.
It provides a very convenient API for fetching URLs and extracting and manipulating data, using the best of HTML5 DOM methods and CSS selectors. Jsoup is a Java library for working with real-world HTML.