Instant jsoup How-to

Effectively extract and manipulate HTML content with the jsoup library

Instant jsoup How-to

Pete Houston

1 customer reviews
Effectively extract and manipulate HTML content with the jsoup library
Mapt Subscription
FREE
$29.99/m after trial
eBook
$9.10
RRP $12.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$9.10
$29.99p/m after trial
RRP $12.99
Subscription
eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782167990
Paperback38 pages

Book Description

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

Chapter 1: Instant Jsoup How-to
Giving input for parser (Must know)
Extracting data using DOM (Must know)
Extracting data using CSS selector (Must know)
Transforming HTML elements (Must know)
Miscellaneous Jsoup options (Should know)
Cleaning dirty HTML documents (Become an expert)
Listing all URLs within an HTML page (Should know)
Listing all images within an HTML page (Should know)

What You Will Learn

  • Parse HTML from a URL, a file, or a string
  • Find data using DOM or CSS selectors
  • Manipulate the HTML elements, attributes, and text
  • Sanitize data to prevent XSS attacks
  • Understand various methods to configure your library for better results

Authors

Table of Contents

Chapter 1: Instant Jsoup How-to
Giving input for parser (Must know)
Extracting data using DOM (Must know)
Extracting data using CSS selector (Must know)
Transforming HTML elements (Must know)
Miscellaneous Jsoup options (Should know)
Cleaning dirty HTML documents (Become an expert)
Listing all URLs within an HTML page (Should know)
Listing all images within an HTML page (Should know)

Book Details

ISBN 139781782167990
Paperback38 pages
Read More
From 1 reviews

Read More Reviews