> 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/~/revisions/JXzrUqGRv2SpX1M1KEqJ/getting-started/extension-features/parts.md).

# 部分提取  (Extract Part)

## 什么是部分提取（Extract Part）？

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

{% hint style="success" %}
**快速上手**

➡️ 在想要的页面点击 Listly 图标 ➡️ 选择部分提取（Extract Part） ➡️ 选择数据提取区域 ➡️ 在面板中选择提取选项（选填） ➡️ 点击提取 ➡️ 在结果中选择想要数据的标签页 ➡️ 下载您的数据
{% endhint %}

## 使用方法

{% stepper %}
{% step %}

#### 在目标网站点击 Listly 图标

在已[安装 Listly](https://help.listly.io/docs/zh-hans/~/revisions/5ObaqiYl8G5VZ1vEatnt/getting-started/quick-start-guide/how-to-install-listly) 的浏览器中，前往想提取数据的网页并点击 Listly 图标。
{% endstep %}

{% step %}

#### 选择“部分提取（Extract Part）”

在 Listly 扩展程序中选择 **\[部分提取（Extract Part）]** 按钮。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FFr1k8Mii0CWuRSE966u7%2Fimage.png?alt=media&amp;token=4cfe20e4-18a8-4071-8ab7-acfd5317ce5b" 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%2FR1WHy13DEGkVQQJbEMnd%2Fimage.png?alt=media&amp;token=c2df5096-a8ec-4252-b36f-b84d85d957ec" alt=""><figcaption></figcaption></figure>

当您点击具有相符模式的提取区域时，会自动出现弹出窗口，让您一次选择所有相似的区域。

* **\[合并为一个（Group All）]**：点击后，不必逐一点击即可选择所有相符的区域。
* **\[分开保留（Keep separate）]**：若想提取的区域是不共用同一模式的个别独立区域，请点击此项。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FdJgajNtjpalzZEsa5GVW%2Fimage.png?alt=media&amp;token=e0a248ae-8e5c-4d3b-827f-88d2b25e0de5" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[部分提取区域选择](https://help.listly.io/docs/zh-hans/~/revisions/5ObaqiYl8G5VZ1vEatnt/getting-started/extension-features/parts-selection)
{% endhint %}
{% endstep %}

{% step %}

#### 为各区域选择提取选项（选填）

如有需要，可在各个选择框内设置提取选项。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FsOpmgwBttUp6s6KnP1TV%2Fimage.png?alt=media&amp;token=ed2e49ba-18f0-41ae-91b0-13fa2dbfabb8" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[了解部分提取（Extract Part）的提取选项](https://help.listly.io/docs/zh-hans/~/revisions/5ObaqiYl8G5VZ1vEatnt/getting-started/extension-features/parts-options)
{% endhint %}
{% endstep %}

{% step %}

#### 点击“提取”

选择完所有提取区域后，点击 **\[提取]** 按钮。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FtoADr3Qys2sNmVD52Wmh%2Fimage.png?alt=media&amp;token=2dde2d86-cdd0-4496-b6f4-77992708abce" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 在结果中选择要提取的标签页

在结果页面确认提取的数据后，点击 **\[Excel]** 或 **\[Google Sheets]** 按钮导出。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2Fh5qvBqF6zmw7uYC8Zl2y%2Fimage.png?alt=media&amp;token=4688ae73-0bc0-462c-9c4b-ff81c8e07877" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[进一步了解数据下载选项](https://help.listly.io/docs/zh-hans/~/revisions/5ObaqiYl8G5VZ1vEatnt/getting-started/result-page-features/data-options)
{% endhint %}
{% endstep %}

{% step %}

#### 下载您的数据

确认下载的文件。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2F5PlHSawKdn5bSlIuCkAm%2Fimage.png?alt=media&amp;token=f3c89bf1-52a6-4852-9a9e-d4d601052413" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## 部分提取（PARTS）相关常见问题

<details>

<summary>PART vs PARTS 有什么不同？</summary>

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/yjS7IwZEUextuL6cZlAD/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2002.jpg" alt=""><figcaption></figcaption></figure>

直接显示在单一选择区域上方的各功能按钮位置（Before）如下移动到侧边面板（After）。请参考图片确认现有 UI 变更后各功能按钮的位置。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/5SeUkeOJhbJSDgmeFjNQ/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2003.jpg" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**如果想用与现有部分选择相同的流程提取数据**，参考变更的按钮位置只选择单一区域后，点击 Run Listly 按钮进行提取即可。
{% endhint %}

</details>

<details>

<summary>要提取的信息数量因页面而异。这样也能进行群组提取吗？</summary>

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/zcJL6VFcvzqAxfggjHXL/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2007.jpg" alt=""><figcaption></figcaption></figure>

**可以。** 例如假设如上图第 1 页第一格区域在第 2 页被广告等其他元素取代的情况。（<mark style="color:$success;">想提取的信息以绿色框区域显示</mark>）\
\
**Listly 的 Parts 会自动检测相同结构的数据位置。**\
\
在第 1 页用「**同时选择重复区域（重复元素自动选择）**」方式指定想要的区域进行数据提取，并以该页面为基础进行群组提取时，即使选择区域的数量在其他网页显示不同，也能成功提取数据。

</details>

<details>

<summary>用「单独选择想要区域」方式提取特定页面后，想进行群组提取。但「单独选择」的元素在某些页面不存在。这种情况会怎样？</summary>

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/BNklTI0NlcTFXjyTLUne/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2008.jpg" alt=""><figcaption></figcaption></figure>

**如上图**，**没有的信息会以空格提取。**

假设在 A 页面用 Parts 各别选择图片、标题、说明文本区域提取后，与相同结构的页面进行群组提取。

此时 C 页面的 A 页面选择的说明文本区域是空的。

这种情况如上图，该格的数据会以空白状态提取。

{% hint style="danger" %} <mark style="color:red;">**但是，如同现有的群组提取，尝试一起提取与群组提取来源页面完全不同结构的网页，或与 A 页面没有任何匹配区域时，会处理为收集失败。**</mark>
{% endhint %}

</details>

<details>

<summary>选择重复区域时也一起选择了不必要的区域。该如何解决？</summary>

计划新增可以更准确精细选择数据区域，用点击移除不必要区域的功能。目前可以用直接**修改该区域的 CSS Selector 值**的方法解决。

</details>


---

# 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/~/revisions/JXzrUqGRv2SpX1M1KEqJ/getting-started/extension-features/parts.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.
