# 手动编写说明

虽然 自定义解析器 可借助 AI 驱动的功能帮助你自动化数据解析，但你也可以使用 CSS 和 XPath 表达式手动编写解析说明。这让你可以选择 **处理边缘情况** 或 **自定义解析逻辑** 以适用于特定场景。

创建作业时，自定义解析器 需要以下必填参数：

* `解析` 设置为 `true`
* `parsing_instructions` 其中包含一个带有你的提取规则的 JSON 对象

一旦你对自定义解析逻辑感到满意，就可以将这些说明保存为可复用的 [解析器预设](/products/cn/web-scraper-api/features/custom-parser/parser-presets.md).

请查看下面我们全面的指南，其中你可以找到实用示例、XPath 表达式的最佳实践，以及所有可用解析函数的完整参考。

{% content-ref url="/pages/f0599592eb013357024a5311a8b39c2e63e3cf58" %}
[解析指令示例](/products/cn/web-scraper-api/features/custom-parser/writing-instructions-manually/parsing-instruction-examples.md)
{% endcontent-ref %}

{% content-ref url="/pages/3aac6fc9ec9d5f1b4b4bf87d5a05ad6b0991ceb6" %}
[编写 XPath 表达式的技巧](/products/cn/web-scraper-api/features/custom-parser/writing-instructions-manually/tips-for-writing-xpath-expressions.md)
{% endcontent-ref %}

{% content-ref url="/pages/b210c7fde99e3f92815c49348b7c1d7ea1c4d44c" %}
[解析函数列表](/products/cn/web-scraper-api/features/custom-parser/writing-instructions-manually/list-of-functions.md)
{% endcontent-ref %}

{% content-ref url="/pages/4676fed76a7d4066f1f6f839e8d4da500d6ee701" %}
[解析函数示例](/products/cn/web-scraper-api/features/custom-parser/writing-instructions-manually/list-of-functions/function-examples.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.oxylabs.io/products/cn/web-scraper-api/features/custom-parser/writing-instructions-manually.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
