Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Are there any dependencies or dependencies on jsoup?


Asked by Dalton Terry on Dec 02, 2021 FAQ



jsoup is entirely self contained and has no dependencies. jsoup runs on Java 7 and up, Scala, Kotlin, Android, OSGi, Lambda, and Google App Engine.
Subsequently,
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.
Similarly, You can include Jsoup jars into your project using below maven dependency. Or you can directly download jsoup-1.8.2.jar from jsoup.org website and add it to project’s lib folder. Though there are many classes in complete library, but mostly you will be dealing with below given 3 classes. let’s look at them
Furthermore,
JSoup is a powerful library that can handle malformed HTML effectively. The name of this library comes from the phrase “tag soup”, which refers to the malformed HTML document. HtmlUnit is a GUI-less, or headless, browser for Java Programs.
In addition,
Jsoup can be used to manipulate or extract data from a file on local that contains HTML. filePath is path of a file on disk. ENCODING is desired Charset Name e.g. "Windows-31J". It is optional. Jsoup can be be used to easily extract all links from a webpage.