> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/integrations/cn/proxy-integrations/octoparse.md).

# Octoparse

将 Octoparse 与 Oxylabs 代理集成以实现无代码网页抓取。设置自动 IP 轮换并处理常见抓取挑战。

[**Octoparse**](https://www.octoparse.com/) 是一款数据提取工具。它允许你无需编写代码即可抓取公开数据，并通过自动 IP 轮换和延长会话时间来应对大多数抓取挑战。

按照以下步骤将 Octoparse 与以下 Oxylabs 代理集成：

* [**住宅与移动代理**](#residential-and-mobile-proxies)
* [**数据中心代理**](#datacenter-proxies)
* [**独享数据中心代理（企业版）**](#dedicated-datacenter-proxies-enterprise)
* [**独享数据中心代理（自助版）**](#dedicated-datacenter-proxies-self-service)
* [**ISP代理**](#isp-proxies)
* [**独享ISP代理**](#dedicated-isp-proxies)

### **第1步**

[**下载**](https://www.octoparse.com/download/mac)，安装，然后打开 Octoparse。

### **第2步**

通过点击 **+New** 位于左上角的按钮，并选择 **“Custom Task”。**

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-bda3d68a84769536228e8e0ef0b4d699345190e4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **第3步**

在 **URL 输入框** 中输入你要提取数据的网页 URL，然后点击 **“Save”** 按钮。我们将以 [**Oxylabs 抓取沙盒**](https://sandbox.oxylabs.io/products/category/pc) 为例。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-94a23b5471c974ec0f619093cf613656c700a768%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **第4步**

在你选择的 URL 加载完成后，进入 **“Task Settings”** 并选择 **“Anti-blocking”**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-d6059fc248a4cc709adcfa800165d8af8102e1bc%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-4f2bdcc474717a8d429743cf335b72ab252f5571%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **第5步**

现在，勾选 **通过代理访问网站**，启用 **使用我自己的代理，** 然后点击 **“Configure”**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-b7661b7f2386ea421cd26524bf7bf5ca2c3398d6%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **第6步**

按钮后，会弹出一个窗口。在 **“Configure”** 中填写你选择的代理详细信息， `IP/host:port:username:password` 格式：

* [住宅与移动代理](#residential-and-mobile-proxies)
* [数据中心代理](#datacenter-proxies)
* [独享数据中心代理（企业版）](#dedicated-datacenter-proxies-enterprise)
* [独享数据中心代理（自助版）](#dedicated-datacenter-proxies-self-service)
* [ISP代理](#isp-proxies)
* [独享ISP代理](#dedicated-isp-proxies)

#### 住宅与移动代理

**IP/主机：** `pr.oxylabs.io`

**端口：** `7777`

**用户名：** `customer-username`

**密码：** `密码`

{% hint style="warning" %}
不要忘记添加 `customer-` 部分到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-2ab7fe33e2f6ca420ea2dbf9d90f9114c8e8262f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
你也可以使用按国家/地区划分的条目，通过粘性会话获取所需国家/地区的出口节点。例如，要使用美国出口节点，请输入 `us-pr.oxylabs.io` 在 **主机或 IP 地址** 和 `10001` 在 **端口**。你可以在我们的 [文档](/products/cn/proxies/residential-proxies/location-settings.md).
{% endhint %}

#### 数据中心代理

**IP/主机：** `dc.oxylabs.io`

**端口：** `8001`

**用户名：** `user-username`

**密码：** `密码`

{% hint style="info" %}
不要忘记添加 `user-` 用户名前缀。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-d31dac5c0197bc1f018bb3b408fb8dadbe940a5a%2Foctoparse_dc_details.png?alt=media" alt=""><figcaption></figcaption></figure>

对于 **按 IP 计费** 在订阅中，端口是分配给给定列表中某个 IP 地址的顺序编号。因此，端口 `8001` 使用列表中的第一个 IP 地址。

对于 **按流量计费** 套餐，端口 `8001` 随机选择一个 IP 地址，但在会话期间保持一致。

{% hint style="info" %}
你也可以在用户身份验证字符串中指定地理位置，例如美国： `user-USERNAME-country-US:PASSWORD`。请参阅我们的 [文档](/products/cn/proxies/datacenter-proxies.md) 了解更多详情。
{% endhint %}

#### 独享数据中心代理（企业版）

**IP/主机：** 特定 IP 地址（例如， `1.2.3.4`)

**端口：** `60000`

**用户名：** `用户名`

**密码：** `密码`

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-7af2f27bb3a28768093ff7d8d5ddf5be284c07f4%2Foctoparse_ddc-e_details.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
对于 Enterprise 独享数据中心代理，你需要从 [**已获取的列表**](/products/cn/proxies/dedicated-datacenter-proxies/enterprise/proxy-lists.md).
{% endhint %}

#### 独享数据中心代理（自助版）

**IP/主机：** `ddc.oxylabs.io`

**端口：** `8001`

**用户名：** `user-username`

**密码：** `密码`

{% hint style="warning" %}
不要忘记添加 `user-` 部分到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-1f5cfc55670f481ad4df2023a200e6d0492e5625%2Foctoparse_ddc-ss_details.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
你需要选择一个分配给已购买的 IP 地址的端口 [**代理列表**](/products/cn/proxies/dedicated-datacenter-proxies/self-service/proxy-list.md)**,** ，你可以在 Oxylabs 仪表板中找到它。
{% endhint %}

#### ISP代理

**IP/主机：** `isp.oxylabs.io`

**端口：** `8001`

**用户名：** `user-username`

**密码：** `密码`

{% hint style="warning" %}
不要忘记添加 `user-` 部分到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-7544ae0f0655359c03b83157fa2b9576cba73493%2Foctoparse_isp.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
您需要选择分配给所购买的某个 IP 地址的端口 [**代理列表**](/products/cn/proxies/isp-proxies/proxy-list.md)**,** ，你可以在 Oxylabs 仪表板中找到。 `8001` 端口将为所有请求选取您列表中的第一个 IP 地址。
{% endhint %}

#### 独享ISP代理

**IP/主机**: `disp.oxylabs.io`

**端口**: `8001`

**用户名：** `user-USERNAME`

**密码：** `PASSWORD`

{% hint style="warning" %}
**注意：** 别忘了添加 `user-` 用户名前缀。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-fb651f1c8ef9ff7a0789ae166e3d2272909f17a7%2Foctoparse-1.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
端口号表示您获取的 [代理列表](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md) 中将使用哪个 IP 地址。请使用端口 `8000` 以实现自动 [代理 IP 轮换](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).
{% endhint %}

### **第7步**

设置 **切换** 间隔，具体取决于你使用的是轮换会话还是粘性会话类型。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-8f3efff6cae07d1f24ce75de6d00fc6733c1de4c%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **第 8 步**

通过点击 **“Confirm”** 按钮保存更改，然后点击 **“Save”**.

你的代理现在已设置完成！

### 如何开始使用 Octoparse 抓取

**第 1 步。** 选择你要抓取的所需元素（视频游戏标题）。要提取同一类别中的所有元素，请选择 **选择所有相似元素** 并指定 **文本**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-5193c197dbf02340d0dff814dc08ed73f3cc8a3f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-601479acff48a598fec181f8cb6d728c41e9e827%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**第 2 步。** 设置分页以抓取多个页面。此网站使用数字分页，因此你需要选择 **下一页按钮**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-d2cd7d6725e951f9831e22146eccaa3c24ce8c99%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**第 3 步。** 选择页面布局中打开下一页的具体按钮—— **前进** ——以自动执行分页。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-dcf20caeb6fad59e52187dd234f31252bae87e18%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**第 4 步。** 完成抓取设置并按下 **▶运行**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-391aa7f0b6e1bd1ebac7d94c044097d61d9b30b3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**第 5 步。** 选择 **在你的设备上运行** 并使用 **标准模式** ，将数据作为文件接收至你的电脑。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-57cf8bc0711769ed00913b4b7b8f119535be4232%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**第 6 步。** 让抓取过程运行直到完成。当到达最终产品页面或你手动停止它时，过程就结束。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-024a6ff9f3dee3c6127d452cb7f02a501291e34f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**第 7 步。** 导出收集到的数据并选择文件格式。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-c1a80882d1038da6c432a9c08e29ace0bfd92fd4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-3178b33144d3018fa18bdae33d961491653defd7%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

这是电子表格中的最终结果。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-b815cc6e0f6eadca21ac3c0fdaf4cc1a80c8dc57%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

就是这样——你已全部设置完成，可以开始专注于使用 Octoparse 执行网页抓取任务了。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/integrations/cn/proxy-integrations/octoparse.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
