# 部分選擇

{% hint style="success" %}
[**什麼是 PARTS 擷取？**](https://help.listly.io/docs/zh-hant/~/revisions/1Y8YuKBoP5NixSQ7UEOx/getting-started/extension-features-zh-hant/parts-zh-hant)

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

## 使用方法

{% stepper %}
{% step %}

#### 個別選擇想要的區域

在 PARTS 擷取中，您可以選擇多個想要的資料擷取區域，一次擷取所有資料。

如下方範例所示，分別點擊商品名稱、評論、價格、型號等需要的部分，所選區域會分別記錄在面板中。之後點擊 **\[執行 Listly]** 按鈕，就可以同時擷取所有選取的區域。

<figure><img src="/files/9463f846763a51eef31e100a7aa47d6099cd3ae1" alt=""><figcaption></figcaption></figure>

如範例圖片所示進行選擇和擷取後，您可以確認個別選取區域的資訊如下圖所示被擷取出來。

<figure><img src="/files/f7c41e3748f3a78d4a4b3440a6466fef93bfcf03" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 同時選取重複區域（自動選取重複元素）

**只需點擊一次，就能自動選取重複的區域。**

如下方範例所示，在網頁上點擊特定元素，然後點擊與第一個元素重複的元素，頁面內所有具有相同層次結構的資料就會自動被選取。

<figure><img src="/files/71f9570ed74d95bf967e9ae4cc9d6753346da457" alt=""><figcaption></figcaption></figure>

**如下所示，相同的層次結構會被識別為一個區域並記錄在側邊面板中。**（圖片為了方便理解而使用不同顏色表示。）

<figure><img src="/files/916db60d10fc65161a4eb604a17cf02b69a2ce5d" alt=""><figcaption></figcaption></figure>

使用「同時選取重複區域」方式選擇想要的區域後，點擊擷取按鈕即可如下所示擷取資料。也可以輕鬆收集頁面內重複出現的圖片和品牌名稱。

<figure><img src="/files/79f6f12e60cc94b58101f70c5836a816e24f6c3d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 自動選取重複元素（以項目區塊為單位選擇）

也可以以項目區塊為單位自動選取重複元素。選擇第一個區塊，然後選擇連續的第二個區塊，就能一次選取所有具有相同結構的項目。**但是，這種情況下擷取結果的準確度可能相對較低，因此建議「以最大項目為單位」進行選擇。**

<figure><img src="/files/a95ad335fdc9b9b5e002de5e0d66a97b54973d7c" alt=""><figcaption></figcaption></figure>

在特定項目區塊內選擇細部元素（文字、圖片等）後， 持續點擊 ⬆︎ 向上箭頭，選取區域會逐漸擴大，甚至可以擴展到比項目區塊更大的整體區塊。

<figure><img src="/files/b7375eef882215f5514358f230bd25b133934e59" alt=""><figcaption></figcaption></figure>

在此狀態下再點擊一次 ⬇︎ 向下箭頭，就可以指定「最大項目區塊單位」。

在其他項目上也使用相同方式指定「最大項目單位」，就可以自動選取網頁內所有具有相同結構的項目。
{% endstep %}
{% endstepper %}


---

# 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-selection-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.
