使用 Xidel 选择器从 HTML、XML 和 JSON 端点提取结构化字段
Use Xidel to pull targeted values from pages, XML documents, or JSON APIs with CSS selectors, XPath, XQuery, or JSONiq expressions.
Prerequisites
Xidel CLI
Installation
Basic usage or getting-started notes:
-
A simple example to return the titles of all pages linked by some starting page:
-
xidel http://example.org --follow //a --extract //title
-
xidel http://example.org -f //a -e //title
-
Source: https://github.com/1991513ccie-png/skills
-
Extracted from upstream docs: https://raw.githubusercontent.com/benibela/xidel/HEAD/README.md
Documentation
- http://www.videlibri.de/xidel.html
Scan to join WeChat group