# 部分 (Parts)

## 什麼是 PARTS 擷取？

**選擇想要的區域進行部分資料擷取**的功能。當您想提高擷取資料的排列和準確度時，請使用此功能。

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

➡️ 在目標頁面點擊 Listly 圖示 ➡️ 選擇 PARTS ➡️ 選取想要的資料擷取區域 ➡️ 在面板中選擇擷取選項（選用） ➡️ 點擊執行 LISTLY ➡️ 在結果視窗中選擇要擷取的分頁 ➡️ 下載 Excel 檔案
{% endhint %}

***

## 使用方法

{% stepper %}
{% step %}

#### 在目標頁面點擊 **Listly 圖示**

在[已安裝 Listly](https://help.listly.io/docs/ko/getting-started/listly-help/how-to-install-listlyhttps://help.listly.io/docs/zh-hant/~/revisions/VNY6Urp265wON9MHZREX/getting-started/quick-start-guide-zh-hant/how-to-install-listly-zh-hant) 的瀏覽器中，前往想要擷取的網頁並點擊 Listly 圖示。
{% endstep %}

{% step %}

#### 選擇 PARTS

在 Listly 擴充功能中選擇 **\[PARTS] 按鈕**。

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

{% step %}

#### 選取想要的資料擷取區域

用滑鼠點擊指定要擷取的區域。

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

{% hint style="info" %}
參考：[選擇 PARTS 擷取區域](https://help.listly.io/docs/zh-hant/~/revisions/SU0WP3fgrGYvb4lYVar5/getting-started/extension-features-zh-hant/parts-selection-zh-hant)
{% endhint %}
{% endstep %}

{% step %}

#### 在面板中選擇擷取選項（選用）

如有需要，請在 PARTS 面板中選擇擷取選項。

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

{% hint style="info" %}
參考：[了解 PARTS 擷取選項](https://help.listly.io/docs/ko/getting-started/listly-basics/undefinedhttps://help.listly.io/docs/zh-hant/~/revisions/1Y8YuKBoP5NixSQ7UEOx/getting-started/extension-features-zh-hant/parts-options-zh-hant)
{% endhint %}
{% endstep %}

{% step %}

#### 點擊執行 LISTLY

完成擷取區域選擇後，點擊 **執行 LISTLY** 按鈕。

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

{% step %}

#### 在結果視窗中選擇要擷取的分頁

在結果視窗確認擷取的資料後，點擊 **\[Excel]** 或 **\[Google 試算表]** 按鈕匯出。

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

{% hint style="info" %}
參考：[了解更多資料下載選項](https://help.listly.io/docs/zh-hant/~/revisions/SU0WP3fgrGYvb4lYVar5/getting-started/result-page-features-zh-hant/data-download-options-zh-hant)
{% endhint %}
{% endstep %}

{% step %}

#### 下載檔案

請確認下載的檔案。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/AAZFzCGnloEAn4a7TqMe/parts%206.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## PARTS 擷取常見問題

<details>

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

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/zEkWkwhyJAbLZ65ksQ4y/%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/QSPSOmaFPAz7khj6t7Ds/blobs/Tmg49vL2hseencZV0Wca/%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" %}
**如果想要以與原有 PARTS 選取相同的流程擷取資料**，只需參考變更後的按鈕位置，選擇單一區域後點擊執行 Listly 按鈕即可進行擷取。
{% endhint %}

</details>

<details>

<summary>要擷取的資訊數量在不同頁面中有所不同。還能進行群組擷取嗎？</summary>

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/HvndLF24NPAUKd2MCvoZ/%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/QSPSOmaFPAz7khj6t7Ds/blobs/1V7BRJXaK0wjAp0aHZdR/%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-hant/getting-started/extension-features-zh-hant/parts-zh-hant.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.
