Jsoup is a Java library for working with real-world HTML. It provides a convenient API for extracting and manipulating data using the best of DOM, CSS, and jquery-like methods.
- Download from the official website:
- Visit Jsoup’s official website.
- Download the latest version of the Jsoup JAR file.
- Use it from the repo Files:
-
Using Jsoup in a Standalone Java Application:
- Create a new Java project in your IDE (e.g., IntelliJ IDEA, Eclipse).
- Add the Jsoup JAR file to your project’s classpath:
- In IntelliJ IDEA:
- Right-click on your project and select "Open Module Settings".
- Go to "Libraries" and click on the
+
button. - Select "Java" and locate the Jsoup JAR file you downloaded.
- In Eclipse:
- Right-click on your project and select "Properties".
- Go to "Java Build Path" and click on the "Libraries" tab.
- Click on "Add External JARs" and locate the Jsoup JAR file you downloaded.
- In IntelliJ IDEA: