E-book details

Instant jsoup How-to. Effectively extract and manipulate HTML content with the jsoup library

Instant jsoup How-to. Effectively extract and manipulate HTML content with the jsoup library

Pete Houston

Ebook
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.
  • Instant Jsoup How-to
    • Instant Jsoup How-to
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Instant Jsoup How-to
      • Giving input for parser (Must know)
        • How to do it...
        • How it works...
        • Theres more...
      • Extracting data using DOM (Must know)
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Extracting data using CSS selector (Must know)
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Transforming HTML elements (Must know)
        • How to do it...
        • How it works...
        • There's more...
      • Miscellaneous Jsoup options (Should know)
        • How to do it...
        • There's more...
      • Cleaning dirty HTML documents (Become an expert)
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Tags removed in <head>
      • Listing all URLs within an HTML page (Should know)
        • How to do it...
        • How it works...
        • There's more...
      • Listing all images within an HTML page (Should know)
        • How to do it...
        • How it works...
  • Title: Instant jsoup How-to. Effectively extract and manipulate HTML content with the jsoup library
  • Author: Pete Houston
  • Original title: Instant jsoup How-to. Effectively extract and manipulate HTML content with the jsoup library
  • ISBN: 9781782168003, 9781782168003
  • Date of issue: 2013-06-07
  • Format: Ebook
  • Item ID: e_3asw
  • Publisher: Packt Publishing