# 企業版 - 自動擷取子頁面

## 子頁面自動收集是什麼？

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/5l17bvp9g2TF1d4bzGgE/enterprise%20subpage%201.png" alt=""><figcaption></figcaption></figure>

當列表頁面有新文章或商品上傳時，該子頁面的 URL 會自動添加到群組中並進行提取的功能。使用子頁面自動收集功能時，無需手動逐個收集或更新網址，**可以自動檢測變更的列表並收集新資料**。

此功能在提取**像文章、商品頁面這樣持續更新的頁面**時特別有用。\
例如，如果連結每天註冊新商品的購物網站列表頁面，新商品的詳細頁面會自動收集，**可以保持最新的資料狀態**。

{% hint style="success" %}
**子頁面（Subpage）是什麼？**

指網站主頁（首頁）以外的所有下層頁面。
{% endhint %}

***

## 使用方法

{% stepper %}
{% step %}

#### 建立上層作業（父作業）

{% stepper %}
{% step %}
在列表頁面執行 Listly 並點擊 **\[部分+]** 按鈕。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/abH0HJfZTldmFyJLCMms/enterprise%20subpage%202.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
選擇提取區域後，在提取選項中選擇 **'Hyperlink'** 僅收集各詳細頁面的連結。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/vy4yg7Kmw8xbkB2nkNDV/enterprise%20subpage%203.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**僅收集詳細頁面超連結的此任務是「子頁面自動收集」所需的上層作業**。此任務的 URL 稍後連結下層作業時會使用，所以提前複製會很方便。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/D1V7XSMsxhZSYMuLdnpj/enterprise%20subpage%204.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
{% endstep %}

{% step %}

#### 建立下層作業（子作業）後連結上層作業

{% stepper %}
{% step %}
在詳細頁面選擇作為群組提取基準的區域並提取資料。\
（此過程與一般[群組提取](https://help.listly.io/docs/ko/getting-started/result-page-features/group-extraction)相同）

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/WqDs5218HRvKDRgJ4Evh/enterprise%20subpage%205.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
在結果頁面確認所選資料位於的「分頁」後，點擊 **\[+群組]** 按鈕。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/Wnullg0jnQbRjAZX8VMY/enterprise%20subpage%206.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
在群組提取設定視窗底部的 URL 輸入欄中選擇 **\[Choose URL from existing task]**，並貼上先前建立的上層作業（I-3 步驟）的 URL。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/QAOX5oJhq2brriXGa1Aa/enterprise%20subpage%207.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
點擊 **\[Preview]** 按鈕，選擇包含詳細頁面 URL 的欄位。如果底部預覽視窗顯示 5 個 URL，則正常。確認後點擊 **\[完成]** 按鈕。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/mRD3SfuOaHmnDqVGJ3Gu/enterprise%20subpage%208.png" alt=""><figcaption></figcaption></figure>

![](https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/eVxIfGnfPo8vAwlslcwf/unknown.png)
{% endstep %}

{% step %}
用這種方式註冊群組後，下層作業（詳細頁面群組提取任務）會連結在上層作業（超連結收集任務）下。每次上層作業發現新連結時，該 URL 會自動添加到下層作業中並進行收集。因此 <mark style="background-color:$success;">排程應該</mark> <mark style="background-color:$success;">**在上層作業**</mark><mark style="background-color:$success;">中設定</mark>。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/v4ILSlfE1CEjaFgRs5F4/enterprise%20subpage%209.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
根據所需週期和時間設定排程。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/1uctkRqIlzn7yhD8y2q0/enterprise%20subpage%2010.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
根據設定的排程執行上層作業時，如果列表頁面有註冊的新項目，該 URL 會自動更新到下層群組。

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/Ecu7nKGnTdZ6wYi960oB/enterprise%20subpage%2011.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/oeF6AEXurOXQHlKf0qwH/enterprise%20subpage%2012.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
**注意事項**

子頁面自動提取功能不是檢測新文章的功能，而是**基於根據排程執行的自動提取方式**運作。根據使用者註冊的排程執行上層作業時，如果在列表頁面發現新內容，該連結會自動添加到下層作業並進行收集。
{% endhint %}
