Download and install jsoup
jsoup is available as a downloadable
.jar java library. The current release version is 1.16.1.
jsoup-1.16.1-sources.jaroptional sources jar
jsoup-1.16.1-javadoc.jaroptional javadoc jar
Previous releases of jsoup are also available.
If you use Maven to manage the dependencies in your Java project, you do not need to download; just place the following into your POM's
<dependency> <!-- jsoup HTML parser library @ https://jsoup.org/ --> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.16.1</version> </dependency>
// jsoup HTML parser library @ https://jsoup.org/ implementation 'org.jsoup:jsoup:1.16.1'
Building from source
If you want to try out as yet unreleased changes, or would like to make your own, you will need to build a jar from source. It's easy. It's best to use git so that you can stay up to date, and be able to contribute your changes back:
git clone https://github.com/jhy/jsoup.git cd jsoup mvn install
That will run the unit and integration tests, and after passing, install a snapshot jar into your local Maven repository.
If you prefer to not use git, you can download a zip:
curl -Lo jsoup.zip https://github.com/jhy/jsoup/archive/master.zip unzip jsoup.zip cd jsoup-master mvn install
jsoup is entirely self contained and has no runtime dependencies.
jsoup runs on Java 8 and up, Scala, Kotlin, Android, OSGi, Lambda, and Google App Engine.