Jsoup Tutorial

Jsoup tutorial is designed for beginners and professionals providing basic and advanced concepts of html parsing through jsoup.

Jsoup is a java html parser. It is a java library that is used to parse HTML document. Jsoup provides api to extract and manipulate data from URL or HTML file. It uses DOM, CSS and Jquery-like methods for extracting and manipulating file.

# Jsoup Example

In this tutorial, you will get a lot of examples of Jsoup. Let's see a simple example of Jsoup technology.

import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class FirstJsoupExample{ public static void main( String[] args ) throws IOException{ Document doc = Jsoup.connect("http://www.syntaxbook.com").get(); String title = doc.title(); System.out.println("title is: " + title); } }

# Jsoup Examples

In this tutorial, we will see a lot of jsoup examples like loading html document, printing title from url and html file, printing total internal links of an url with text, total images of an url, meta data of an url such as keywords, description etc.

# Problem

Jsoup tutorial is developed and tested carefully. But if you find any problem or mistake in our tutorial, you can report to us. We assure, you will not find any problem in jsoup tutorial.