> For the complete documentation index, see [llms.txt](https://help.listly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.listly.io/docs/zh-hans/getting-started/extension-features/parts-selection.md).

# 部分提取区域选择

{% hint style="success" %}
[**什么是部分提取（Extract Part）？**](https://help.listly.io/docs/zh-hans/~/revisions/VcdXmHM6Vomt5iX6CwbH/getting-started/extension-features/parts)

这是可以**只选择想要的区域、部分提取数据**的功能。当您想提升提取数据的结构与准确度时，欢迎试试看。
{% endhint %}

## 使用方法

{% stepper %}
{% step %}

### 逐一选择想要的区域

使用部分提取（Extract Part），您可以选择多个数据区域并一次全部提取。

如下方示例所示，点击您需要的各个部分——商品名称、评论、价格、型号等——每个选择的区域都会分别登录到面板中。点击 **\[提取]** 按钮后，所有选择的区域就会同时提取。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2Fx9zLKb2qaNiTiRVGVWS6%2Fimage.png?alt=media&amp;token=557efa95-2eb2-4179-b24f-52265c05aa1d" alt=""><figcaption></figcaption></figure>

以这种方式选择并提取时，可以看到每个个别选择区域的信息会如下图所示被提取出来。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FAImboICQeq4422K7rcAu%2Fimage.png?alt=media&amp;token=d78a1987-a0df-45c1-81b5-027c248b0a5c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 一次选择重复区域（自动选择重复元素）

**只要点击一次，就能自动选择重复的区域。**

如下方示例所示，点击网页上的特定元素，接着点击与第一个元素重复的元素，Listly 便会识别相似的区域并出现弹出窗口。此时，请点击 **合并为一个（Group All）** 按钮。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2F1fbbPtkSShigAqOqReeT%2F6.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%E1%84%8B%E1%85%A7%E1%86%BC%E1%84%8B%E1%85%A7%E1%86%A8-gif.gif?alt=media&amp;token=2364898f-8ef4-40ba-9eb2-6679575ed045" alt=""><figcaption></figcaption></figure>

**具有相同层级结构的元素会被识别为单一区域，并记录在侧边面板中，如下所示。** <mark style="color:$info;">（图片中以不同颜色呈现，以便理解。）</mark>

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FEoKluTQ2mg2ZHFOSmn9F%2Fimage.png?alt=media&amp;token=c29b7995-57d8-4b15-8ecf-3eeebf8dc957" alt=""><figcaption></figcaption></figure>

以"一次选择重复区域"的方式选择想要的区域后，点击提取按钮即可如下所示提取数据。您也可以轻松汇总同一页面内重复出现的图片与品牌名称。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FWbSB2gT4DsrZ9CAH0i1n%2Fimage.png?alt=media&amp;token=2a442413-2476-403f-8bbd-5f6532f5fbc9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 自动选择重复元素（以项目框为单位选择）

您也可以用项目框为单位自动选择重复元素。选择第一个框，再选择连续的第二个框时，即可一次选择所有具有相同结构的项目。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FIGGmW1A86K11UgN1D52S%2Fimage.png?alt=media&amp;token=17f52686-02b1-4feb-abb9-dd585500116e" alt=""><figcaption></figcaption></figure>

**若您想以项目为单位这样选择，**&#x5F53;检测到您所选两个区域之间有相似模式而出现弹出窗口时，\
请确认 **"以项目为单位选择（Select by item）"** 已启用，再点击 **"合并为一个（Group All）"**。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FE8F9kpJRsA88FFaSLY3D%2F6.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%E1%84%8B%E1%85%A7%E1%86%BC%E1%84%8B%E1%85%A7%E1%86%A8-%E1%84%8B%E1%85%A1%E1%84%8B%E1%85%B5%E1%84%90%E1%85%A6%E1%86%B7%E1%84%83%E1%85%A1%E1%86%AB%E1%84%8B%E1%85%B1%20%E1%84%89%E1%85%A5%E1%86%AB%E1%84%90%E1%85%A2%E1%86%A8.gif?alt=media&amp;token=1a026ff1-5186-466c-af89-f41a2fda85c5" alt=""><figcaption></figcaption></figure>

如上图所示，启用此切换开关后，可以看到选择区域的虚线框会扩展至项目层级。
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.listly.io/docs/zh-hans/getting-started/extension-features/parts-selection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
