# 批次擷取

## 群組提取是什麼？

群組提取是**可以一次收集多個頁面的功能**。

{% columns %}
{% column width="83.33333333333334%" %}

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/JSkVaXE2Zb3mtjswSx89/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%201.gif" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="16.666666666666657%" %}

{% endcolumn %}
{% endcolumns %}

先提取一個代表頁面後，在結果視窗按\*\*【+群組】\*\*按鈕新增相關頁面的 URL，剩下的頁面 Listly 會自動提取。

***

## 群組提取開始前準備 URL

為了執行群組提取需要一次輸入多個頁面 URL 的過程，建議先準備好要提取的頁面 URL。

根據情況參考下方指南先準備必要的 URL。

* [提取 1,2,3…連續頁面的情況](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/QSPSOmaFPAz7khj6t7Ds/getting-started/result-page-features-zh-hant/group-extraction-sequential-urls-zh-hant)
* [提取清單頁面包含的詳細頁面的情況](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/QSPSOmaFPAz7khj6t7Ds/~/edit/~/changes/22/getting-started/result-page-features-zh-hant/group-extraction-detail-page-urls-zh-hant)

***

## 注意事項

{% columns %}
{% column width="83.33333333333334%" %}

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/t0bfWiQ8CYFpqFSjfCqv/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%202.gif" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="16.666666666666657%" %}

{% endcolumn %}
{% endcolumns %}

群組提取中\*\*首次提取的頁面是「模板」\*\*角色。\
群組提取以此首頁選擇的位置為基準，從其他頁面也取得相同位置的資料。

因此，**首次提取的頁面與之後輸入 URL 的頁面結構不同時，提取可能失敗。**\
進行群組提取前，請務必確認頁面結構是否相同。

***

## 使用方法

{% stepper %}
{% step %}

#### 提取群組提取來源頁面

先提取作為群組提取基準的來源頁面。不一定要是準備的 URL 中的第一個，選擇**群組提取頁面中具代表性結構的頁面**即可。提取方式 Whole / Parts 都可以，但建議使用**可以更準確指定資料位置的** [**部分提取（Parts）**](https://help.listly.io/docs/ko/getting-started/listly-basics/parts-extraction)。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/U78AsOpKRvZaoYdW3Qow/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%203.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 選擇提取分頁

在結果視窗**選擇包含想要資訊的分頁**。請選擇包含選擇區域內所有資訊的分頁。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/ddEKCp8PenfmDMibFLcR/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%204.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 點擊 【+群組】按鈕

點擊\*\*【+群組】\*\*按鈕。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/1KLq0i5toZVI0YjIwjR6/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%205.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 貼上群組提取所需的 URL 位址

在群組設定視窗下方貼上**準備的 URL 位址**，點擊\*\*【完成】\*\*按鈕。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/5PNs0xEJRqzUuXSc1s4M/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%206.png" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
必須**一併輸入最初進行提取的來源頁面 URL**。
{% endhint %}
{% endstep %}

{% step %}

#### 確認群組提取進度

群組提取時可以重新整理資料面板確認進度。提取完成後點擊結果欄位前往群組結果視窗。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/fiac6lVTmyqUR3z72p9A/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%207.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 選擇資料排序方式

點擊 Excel 或 Google 試算表按鈕，選擇資料排序方式後點擊下載按鈕。

{% hint style="info" %}
參考：[卡片 1 個 1 列/分頁 1 個 1 列](https://help.listly.io/docs/ko/getting-started/result-page-features/broken-reference)
{% endhint %}

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/hPEghKLKslpZwTba3ntA/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%208.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/teEq0rHgKReY8pxi4C1p/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%209.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 群組提取完成

開啟下載的檔案確認提取的資料。群組提取完成。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/0zbjzI2JEeE9OkuYFclE/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%2010.png" 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/result-page-features-zh-hant/group-extraction-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.
