Book Image

Instant jsoup How-to

By : Pete Houston
Book Image

Instant jsoup How-to

By: Pete Houston

Overview of this book

As you might know, there are a lot of Java libraries that support parsing HTML content out there. Jsoup is yet another HTML parsing library, but it provides a lot of functionalities and boasts much more interesting features when compared to others. Give it a try, and you will see the difference! Instant jsoup How-to provides simple and detailed instructions on how to use the Jsoup library to manipulate HTML content to suit your needs. You will learn the basic aspects of data crawling, as well as the various concepts of Jsoup so you can make the best use of the library to achieve your goals. Instant jsoup How-to will help you learn step-by-step using real-world, practical problems. You will begin by learning several basic topics, such as getting input from a URL, a file, or a string, as well as making use of DOM navigation to search for data. You will then move on to some advanced topics like how to use the CSS selector and how to clean dirty HTML data. HTML data is not always safe, and because of that, you will learn how to sanitize the dirty documents to prevent further XSS attacks. Instant jsoup How-to is a book for every Java developer who wants to learn HTML manipulation quickly and effectively. This book includes the sample source code for you to refer to with a detailed explanation of every feature of the library.
Table of Contents (7 chapters)

About the Reviewers

Pamela Lu is a software developer in the Philippines with 9 years of experience. She started working as a programmer in 2004, and since then, most of her projects for work have been on Enterprise web applications. She primarily codes in Java and JavaScript. Outside work, she likes trying out other languages and databases. Currently, she is trying to learn functional programming using Scala.

Íñigo Mediavilla Saiz is a full stack web developer with three years of experience in web development.

On the backend, he's had the opportunity to work on programming languages for JVM, starting with Java, then moving to Groovy, and finally to Scala. Right now, he is working on the implementation of a highly scalable architecture on top of the Play 2 framework. As a frontend programmer, he has experience in designing single-page apps with Ember, Knockout, and Sammy.

He shares his interests on Scala, Groovy, JavaScript, functional programming, and concurrent and parallel systems and software engineering on his blog, http://imediava.wordpress.com.