jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. jsoup implements the WHATWG HTML5 specification and parses HTML to the same DOM as modern browsers do.
For more details about the proper version to use, check out the following Maven Central link.
JSoup Java HTML Parser Maven Dependency
Copy below JSoup Java HTML Parser maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.12.1</version>
</dependency>
JSoup Java HTML Parser Gradle Dependency
Copy below JSoup Java HTML Parser gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/org.jsoup/jsoup
compile group: 'org.jsoup', name: 'jsoup', version: '1.12.1'
Download JAR File
Check for Latest Release
Reference
Free Spring Boot Tutorial - 5 Hours Full Course
Watch this course on YouTube at Spring Boot Tutorial | Fee 5 Hours Full Course