Introduction
Input
- Parse a document from a String
- Parsing a body fragment
- Load a Document from a URL
- Load a Document from a File
Extracting data
- Use DOM methods to navigate a document
- Use selector-syntax to find elements
- Extract attributes, text, and HTML from elements
- Working with URLs
- Example program: list links
Modifying data
Cleaning HTML
Cookbook 目錄
入門
輸入
- 解析一個html字符串
- 解析一個body片段
- 從一個URL加載一個Document對象
- 根據一個文件加載Document對象
數據抽取
數據修改
HTML清理