# 企业版 - 代理自动重试

## 什么是代理自动重试？

在采集大量数据时，由于网络阻止、超时或 IP 限制，某些请求可能会失败。

**代理自动重试**是一项 Enterprise 专属功能，可在这些失败情况下提高成功率。此功能在请求失败时自动切换到不同的代理 IP，**在保持连接稳定性的同时继续采集**。

{% hint style="warning" %}
**重要提示**

Enterprise 套餐中的代理功能作为单独选项提供。要使用此功能，您必须拥有单独购买的代理。有关代理设置或购买的咨询，请使用设置页面中的 \[Purchase Proxy] 按钮或联系 <hello@listly.io>。
{% endhint %}

***

## 使用方法

{% stepper %}
{% step %}
**使用截图识别提取失败原因**

**对于服务器执行的提取任务**，如批量提取、自动点击、自动滚动、模板和调度任务，如果由于网站阻止导致采集失败，您可以使用代理自动重试功能提高任务成功率。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/5tLPBG6YP4ykm7B0Bz2k/enterprise%20proxy%201.png" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
参考：使用数据提取失败时自动生成的[截图](https://help.listly.io/docs/ko/getting-started/databoard-features/screenshot)，您可以查看失败时的页面状态和错误代码。
{% endhint %}
{% endstep %}

{% step %}
**导航到任务的设置页面**

进入任务的**设置页面**。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/UhOsfWGHRIwUSA9FJU8R/retry%202.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**在 Private Proxy 部分点击 Retry (Proxy) 按钮**

在设置页面的 **\[Private Proxy]** 部分，勾选 **\[Retry (Proxy)]** 选项以启用该功能。

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

{% step %}
**配置详细选项**

每个代理自动重试选项的说明如下：

**A. 选择代理池**

* All Private proxies：使用所有注册的私有代理中可用的 IP 按顺序重试。
* All Private proxies in same country：仅使用与所选代理相同国家的代理。
* All Private proxies in same providers：仅使用与所选代理相同提供商的代理。

**B. 选择请求间隔**

您可以自由设置请求间隔。但是，如果间隔太短，下一个请求可能会在之前尝试的代理服务器工作完成之前重叠，因此我们建议根据网页的数据量保持适当的工作间隔。

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

{% step %}
**保存所选设置**

完成配置后，点击设置页面底部的 **\[Save]** 按钮。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/2fcbL3QAZnDKxAlRK1q0/retry%205.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**重新提取任务**

保存设置后，点击任务列表中的 **\[Re-extract]** 图标，以应用配置的代理自动重试规则重新开始采集。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/zp2meYxWmMtabphdohyQ/retry%206.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**检查重新提取处理结果**

提取完成后，您可以在批量结果页面中验证每个请求的处理结果。表格中 **retry** 列显示的数字记录了代理自动重试过程。

显示格式为**成功尝试次数 / 池中代理数量**。例如，如果显示为 **6 / 15**，表示在设置中选择的 15 个代理服务器中，第 6 个代理提取成功。

此值让您可以直观地了解尝试了多少次代理切换，以及特定请求对阻止的敏感程度。

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/X5njOKidZkhx5A0XYz7Q/retry%207.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-hans/getting-started/enterprise-solutions/qi-ye-ban-dai-li-zi-dong-chong-shi.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.
