返回 Skill 列表
extension
分类: 数据与分析无需 API Key

使用 Xidel 选择器从 HTML、XML 和 JSON 端点提取结构化字段

使用 Xidel 通过 CSS 选择器、XPath、XQuery 或 JSONiq 表达式从页面、XML 文档或 JSON API 中提取目标值。

person作者: user_3c6cb52ehubcommunity

使用 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