# 部分 (Parts)

## 部分提取是什么？

**只选择想要的区域部分提取数据**的功能。想提高提取数据的排列和准确度时使用。

{% hint style="success" %}
**超简单跟着做**

➡️ 在想要的页面点击 Listly 图标 ➡️ 选择部分+（Parts）➡️ 选择想要的数据提取区域 ➡️ 在面板选择提取选项（选项）➡️ 点击 RUN LISTLY ➡️ 在结果窗口选择要提取的标签 ➡️ 下载 Excel 文件
{% endhint %}

***

## 使用方法

{% stepper %}
{% step %}

#### 在想要的页面**点击 Listly 图标**

在[安装 Listly](https://help.listly.io/docs/ko/getting-started/listly-help/how-to-install-listly) 的浏览器前往想提取的网页，点击 Listly 图标。
{% endstep %}

{% step %}

#### 选择部分+（Parts）

在 Listly 扩展程序**选择【部分+】按钮**。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/jf4jJGAbDP31Z2LxxacC/parts%201.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 选择想要的数据提取区域

用鼠标点击指定要提取的区域。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/PGYrs29SsLdz5fIJ6FWh/parts%202.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[选择部分提取区域](https://help.listly.io/docs/ko/getting-started/listly-basics/parts-selection)
{% endhint %}
{% endstep %}

{% step %}

#### 在面板选择提取选项（选项）

必要时在部分面板选择提取选项。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/8Bv2XWY65a38DWOZusmN/parts%203.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[了解部分提取选项](https://help.listly.io/docs/ko/getting-started/listly-basics/undefined)
{% endhint %}
{% endstep %}

{% step %}

#### 点击 RUN LISTLY

完成提取区域选择后，点击 **RUN LISTLY** 按钮。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/Gu1zcHhsYBM2IsRJdm9n/parts%204.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 在结果窗口选择要提取的标签

在结果窗口确认提取的数据后，点击 **\[Excel]** 或 **\[Google 表格]** 按钮导出。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/2oSEitFaJpJHIfCAaOHV/parts%205.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[更多了解数据下载选项](https://help.listly.io/docs/ko/getting-started/result-page-features/data-download-options)
{% endhint %}
{% endstep %}

{% step %}

#### 下载文件

确认下载的文件。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/djWHdOCJoNFtUonLwJqA/parts%206.png" 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: 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://help.listly.io/docs/zh-hans/getting-started/extension-features/parts.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.
