> 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/webharvy.md).

# WebHarvy

将 WebHarvy 网页爬虫与 Oxylabs 代理集成。代理配置和身份验证分步设置指南。

[**WebHarvy**](https://www.webharvy.com/index.html) 是一款网页抓取工具，可从网页中提取文本、HTML 和图片。该工具可处理登录、表单提交、导航、分页、定时抓取，并支持代理。

按照以下步骤将下列 Oxylabs 代理集成到 WebHarvy 中：

* [**住宅代理和移动代理**](#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.webharvy.com/index.html) 并安装 WebHarvy 应用。

### **步骤 2**

设置完成后，转到 **设置。**

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

### **步骤 3**

点击 **代理设置***.* 选择以勾选 **通过代理服务器启用网络连接** 并选择 `HTTP`, `HTTPS`，或 `SOCKS5` 作为您的代理协议 **类型**.

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

### **步骤 4**

填写所选代理类型的连接详情：

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

#### 住宅代理和移动代理

**类型：** `HTTP`, `HTTPS`，或 `SOCKS5`

**地址：** `pr.oxylabs.io`

**端口：** `7777`

你还可以使用 **附加参数** 搭配住宅代理和移动代理来设置地理位置（国家/地区、州、省、市等）并控制会话。查看 [住宅代理文档](/products/cn/proxies/residential-proxies.md) 以了解更多。

#### 数据中心代理

**类型：** `HTTP`, `HTTPS`，或 `SOCKS5`

**地址**: `dc.oxylabs.io`

**端口：** `8001`

{% tabs %}
{% tab title="按 IP 计费订阅" %}
端口是分配给来自 [代理列表](/products/cn/proxies/datacenter-proxies/proxy-list.md)的 IP 地址的顺序编号。因此，端口 `8001` 将始终使用你列表中的第一个 IP 地址。你也可以通过将端口设置为 [代理 IP 轮换](/products/cn/proxies/datacenter-proxies/ip-control.md) 来启用 `8000`.

此外，你还可以指定 [地理位置](/products/cn/proxies/datacenter-proxies/select-country.md)，例如美国，方法是将 **代理用户名** 设置为 `user-USERNAME-country-US`.
{% endtab %}

{% tab title="按流量计费订阅" %}
该端口 `8001` 会随机选择一个 IP 地址，但在会话期间保持一致。或者，你可以通过使用端口 [轮换代理 IP](/products/cn/proxies/datacenter-proxies/ip-control.md) 来在每个请求中更换 IP `8000`.

如果你想使用特定的 [地理位置](/products/cn/proxies/datacenter-proxies/select-country.md)，例如美国，请将代理用户名设置为 `user-USERNAME-country-US`.
{% endtab %}
{% endtabs %}

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

**类型：** `HTTP` 或 `SOCKS5`

**地址：** `1.2.3.4` （来自你的 [代理列表](/products/cn/proxies/dedicated-datacenter-proxies/enterprise/proxy-lists.md))

**端口：** `60000` (HTTP), `1180` (SOCKS5)

对于通过销售购买的企业独享数据中心代理，你必须从已获取的 [代理列表](/products/cn/proxies/dedicated-datacenter-proxies/enterprise/proxy-lists.md).

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

**代理类型：** `HTTP`, `HTTPS`，或 `SOCKS5`

**地址：** `ddc.oxylabs.io`

**端口：** `8001`

对于通过 Oxylabs 控制面板购买的自助服务独享数据中心代理，端口表示来自已获取的某个 IP 地址的顺序编号 [代理列表](/products/cn/proxies/datacenter-proxies/proxy-list.md)。如果你希望每个请求都获取不同的 IP，请更改 **端口** 设置为 `8000` 以启用 [代理轮换](/products/cn/proxies/dedicated-datacenter-proxies/self-service/proxy-rotation.md).

#### ISP代理

**类型：** `HTTP`, `HTTPS`，或 `SOCKS5`

**地址：** `isp.oxylabs.io`

**端口：** `8001`

ISP 代理会将每个端口分配给特定的 IP 地址和位置。端口 `8001` 始终使用你的 [代理列表](/products/cn/proxies/isp-proxies/proxy-list.md)中的第一个 IP。使用端口 `8000` 以启用 [代理轮换](/products/cn/proxies/isp-proxies/proxy-rotation.md).

若要从特定国家的代理池获取轮换 IP，请按以下格式设置用户名： `user-USERNAME-country-XX`，其中 `XX` 是国家代码（例如 `US` 表示美国）。

#### 独享ISP代理

**类型：** `HTTP`, `HTTPS`，或 `SOCKS5`

**地址：** `disp.oxylabs.io`

**端口：** `8001`

您需要选择分配给所购买的 IP 地址的端口 [代理列表](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md)，你可以在 Oxylabs 控制面板中找到。 `8001` 端口将为所有请求选取列表中的第一个 IP 地址。使用端口 `8000` 可自动进行 [代理 IP 轮换](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).

### **步骤 5**

选择 **需要身份验证** 以输入您的 Oxylabs 代理 **用户名** 并 **密码**:

| 代理类型           | 示例                                                                                                           |
| -------------- | ------------------------------------------------------------------------------------------------------------ |
| 住宅代理和移动代理      | <p><strong>用户名：</strong> <code>customer-USERNAME</code></p><p><strong>密码：</strong> <code>PASSWORD</code></p> |
| 数据中心代理         | <p><strong>用户名：</strong> <code>user-USERNAME</code></p><p><strong>密码：</strong> <code>PASSWORD</code></p>     |
| 独享数据中心代理（企业版）  | <p><strong>用户名：</strong> <code>USERNAME</code></p><p><strong>密码：</strong> <code>PASSWORD</code></p>          |
| 独享数据中心代理（自助服务） | <p><strong>用户名：</strong> <code>user-USERNAME</code></p><p><strong>密码：</strong> <code>PASSWORD</code></p>     |
| ISP代理          | <p><strong>用户名：</strong> <code>user-USERNAME</code></p><p><strong>密码：</strong> <code>PASSWORD</code></p>     |
| 独享ISP代理        | <p><strong>用户名：</strong> <code>user-USERNAME</code></p><p><strong>密码：</strong> <code>PASSWORD</code></p>     |

{% hint style="warning" %}
请务必添加 `customer-` 或 `user-` 如果您的代理类型需要，请为您的用户名添加前缀。
{% endhint %}

点击 + 按钮将新代理添加到列表中。

### **步骤 6**

按 **应用** 以完成您的 WebHarvy 代理集成。

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

就是这样。现在，您可以浏览互联网并标记要抓取的特定行。点击 **开始，** 您即可开始选择目标数据。

查看原始 WebHarvy 集成博客文章 [此处](https://oxylabs.io/resources/integrations/webharvy).


---

# 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/webharvy.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.
