Instant jsoup How-to
暫譯: 即時 jsoup 使用手冊

Pete Houston

  • 出版商: Packt Publishing
  • 出版日期: 2013-06-01
  • 售價: $1,190
  • 貴賓價: 9.5$1,131
  • 語言: 英文
  • 頁數: 38
  • 裝訂: Paperback
  • ISBN: 1782167994
  • ISBN-13: 9781782167990
  • 海外代購書籍(需單獨結帳)

商品描述

Effectively extract and manipulate HTML content with the jsoup library

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Manipulate real-world HTML
  • Discover all the features supported by the Jsoup library
  • Learn how to Extract and Validate HTML data

In Detail

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.

What you will learn from this book

  • 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

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. This book will take a how-to approach, focusing on recipes that demonstrate Jsoup.

Who this book is written for

If you are working in data scraping, data crawling, or within a similar area using Java, then this book is the one for you. This book acts as a fast-paced and simple guide to enhance your HTML data manipulating skills using one of the most well-known libraries, Jsoup.

商品描述(中文翻譯)

有效地使用 jsoup 函式庫提取和操作 HTML 內容

概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 操作真實世界的 HTML
- 探索 Jsoup 函式庫所支援的所有功能
- 學習如何提取和驗證 HTML 數據

詳細內容
如你所知,市面上有許多 Java 函式庫支援解析 HTML 內容。Jsoup 是另一個 HTML 解析函式庫,但與其他函式庫相比,它提供了許多功能並擁有更有趣的特性。試試看,你會看到不同之處!

《Instant jsoup How-to》提供了簡單且詳細的指導,教你如何使用 Jsoup 函式庫來操作 HTML 內容以滿足你的需求。你將學習數據爬蟲的基本方面,以及 Jsoup 的各種概念,讓你能夠充分利用這個函式庫來達成你的目標。

《Instant jsoup How-to》將幫助你逐步學習真實世界中的實際問題。你將從學習幾個基本主題開始,例如從 URL、檔案或字串獲取輸入,以及利用 DOM 導航來搜尋數據。接著,你將進入一些進階主題,例如如何使用 CSS 選擇器以及如何清理不乾淨的 HTML 數據。HTML 數據並不總是安全的,因此你將學習如何清理不乾淨的文件,以防止進一步的 XSS 攻擊。

《Instant jsoup How-to》是一本適合每位希望快速有效學習 HTML 操作的 Java 開發者的書籍。本書包含範例源代碼供你參考,並詳細解釋函式庫的每個特性。

你將從本書學到的內容
- 從 URL、檔案或字串解析 HTML
- 使用 DOM 或 CSS 選擇器查找數據
- 操作 HTML 元素、屬性和文本
- 清理數據以防止 XSS 攻擊
- 理解各種方法以配置你的函式庫以獲得更好的結果

方法
本書充滿實用的逐步指導和清晰的解釋,針對最重要和有用的任務。這本書將採取如何做的方式,專注於展示 Jsoup 的食譜。

本書的讀者對象
如果你在數據抓取、數據爬蟲或類似領域使用 Java 工作,那麼這本書就是為你而寫的。本書作為一本快速且簡單的指南,旨在提升你使用最知名的函式庫之一 Jsoup 的 HTML 數據操作技能。