# 企業版 - 代理伺服器自動重試

## 代理自動重試是什麼？

收集大量資料時，部分請求可能會因網路封鎖、逾時、IP 限制等原因而失敗。

**代理自動重試**功能是提高這些失敗情況下成功率的企業專用功能。每次請求失敗時，此功能都會自動切換到其他代理 IP，以**維持連接穩定性並繼續收集的方式**運作。

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

企業方案的代理功能作為單獨選項提供。要使用此功能，您必須持有單獨購買的代理。有關代理設定或購買的詢問，請透過設定視窗內的 \[代理購買] 按鈕，或聯繫 <hello@listly.io>。
{% endhint %}

***

## 使用方法

{% stepper %}
{% step %}

#### 使用截圖了解提取失敗原因

**群組提取、自動點擊、自動捲動、範本、排程任務**等透過伺服器執行的提取作業中，**如果因網站封鎖而收集失敗**，可以透過代理自動重試功能提高作業成功率。

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

{% hint style="success" %}
參考：資料提取失敗時自動生成的[截圖](https://help.listly.io/docs/ko/getting-started/databoard-features/screenshot)可以用來確認失敗時的頁面狀態和錯誤代碼。
{% endhint %}
{% endstep %}

{% step %}

#### 前往提取任務的設定視窗

進入任務的**設定視窗**。

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

{% step %}

#### 在個人代理區段點擊重試（代理）按鈕

在設定視窗的 **\[個人代理]** 區段勾選 **\[重試（代理）]** 選項以啟用功能。

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

{% step %}

#### 設定詳細選項

代理自動重試選項的各項說明如下。

<mark style="color:red;">**A. 代理池選擇**</mark>

<mark style="color:red;">➊</mark> All Private proxies：依序重試所有已註冊個人代理中可用的 IP。

<mark style="color:red;">➋</mark> All Private proxies in same country：僅使用與所選代理相同國家的代理。

<mark style="color:red;">➌</mark> All Private proxies in same providers：僅使用與所選代理相同供應商（Provider）的代理。

<mark style="color:orange;">**B. 請求間隔選擇**</mark>

請求間隔可以自由指定。但是，如果間隔設定得太短，可能會在先前嘗試提取的代理伺服器的作業尚未完成的情況下重複下一個請求，因此建議根據網頁的資料量適當保持作業間隔。

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

{% step %}

#### 儲存選擇的設定值

完成設定後點擊設定視窗底部的 **\[儲存]** 按鈕。

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

{% step %}

#### 重新提取該任務

儲存設定值後，從任務列表中點擊 **\[重新提取]** 圖示，將以套用代理自動重試規則的狀態重新進行收集。

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

{% step %}

#### 確認重新提取處理結果

提取完成後，可以在群組結果視窗中確認每個請求的處理結果。表格中**重試**欄顯示的數字是代理自動重試過程的記錄。

標記方式為 <mark style="color:$success;">**成功次數**</mark>\*\* / 代理池數量\*\*。例如，顯示 <mark style="color:$success;">**6**</mark>\*\* / 15\*\* 時，表示在設定中選擇的 15 個代理伺服器中的第 6 個代理成功提取。

通過這個值可以直觀地了解嘗試了多少次代理切換、特定請求被封鎖的敏感程度等。

<figure><img src="/files/d0af52b11af47b9c29022c231311f9ac34323164" 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/enterprise-solutions/proxy-auto-retry.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.
