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

# ParseHub

使用 Oxylabs 代理为 ParseHub 配置以抓取公开数据。将网站转换为电子表格或 API 的分步指南。

[**ParseHub**](https://www.parsehub.com/quickstart) 是一个用于从网站抓取公开数据的工具。它允许用户将任何网站转换为电子表格或 API。

观看我们的视频，或按照以下步骤将 ParseHub 与以下 Oxylabs 代理集成：

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

{% embed url="<https://www.youtube.com/watch?v=X8d4JM0gKlY>" %}

### **步骤 1**

访问 [**Oxylabs 控制面板**](https://dashboard.oxylabs.io/en/) 并添加 [**你的 IP 地址**](https://whatismyipaddress.com/) 到你所选 Oxylabs 代理产品部分下的白名单中。如果你还需要创建用户，请先完成这一步。之后在 ParseHub 中进行身份验证时，你可能需要你的用户凭据。

### **步骤 2**

[**下载 ParseHub**](https://www.parsehub.com/quickstart) 并安装它。

### **步骤 3**

启动 ParseHub。

### **步骤 4**

在主屏幕上点击 **+ 新建项目** 按钮。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-93d421c8eb8db3c0dfcbce0c07ac3f1d85c2e457%2FNew-project.png?alt=media" alt="Parsehub new project" width="563"><figcaption></figcaption></figure>

### **步骤 5**

**输入一个 URL** ，你想从中抓取公开数据。在此示例中，我们将使用 `https://oxylabs.io`。然后，点击 **在此 URL 上启动项目。**

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-bcf499ec83eed6a656ca66dbae9942650d03b041%2FCreate-new-project.png?alt=media" alt="Project URL example" width="542"><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-c2310deee35019ec0bcf776c34f30d8f431e8c44%2FBrowse.png?alt=media" alt="Browse mode switch" width="563"><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-680471a3e309e90f7d077638827a6a5dd62cff02%2FPreferences.png?alt=media" alt="Preferences" width="417"><figcaption></figcaption></figure>

### **第 8 步**

选择 **高级**，点击 **网络** 选项卡并选择 **设置**.

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

### **第 9 步**

选择 **手动代理配置**，并根据你选择的 Oxylabs 代理类型填写以下详细信息：

* [住宅代理和移动代理](#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`

**IP/Host:**`pr.oxylabs.io`

**端口：** `7777`

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

{% hint style="info" %}
您也可以使用随机或粘性、按国家/地区划分的条目。例如，如果您输入 `us-pr.oxylabs.io` 下填写 **HTTP 代理** 并 `10000` 下填写 **端口**下，您将获得一个美国出口节点。如果您输入 `10001` 下填写 **端口**，你将获得带有粘性会话的美国出口节点。你可以在此找到按国家/地区划分的随机代理入口节点完整列表 [**此处**](/products/cn/proxies/residential-proxies/location-settings/select-country.md#country-specific-entry-nodes) 以及粘性代理入口节点列表 - [**此处**](broken://spaces/ZwEHB9k4MH4pDy80n9mF/pages/a7b2e5c423ead1821bf87e8d883aceae933c6fae).
{% endhint %}

#### 数据中心代理

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

**IP/Host:** `dc.oxylabs.io`

**端口：** `8001`

对于 **按 IP 计费** 订阅中，端口表示从给定列表中分配给某个 IP 地址的序号，因此端口 `8001` 将使用你代理列表中的第一个 IP 地址。

对于 **按流量计费** 套餐，端口 `8001` 将随机选择一个 IP 地址，但在会话持续期间保持一致。你可以在用户认证字符串中指定代理的地理位置，例如 `user-USERNAME-country-US:PASSWORD` 以连接到美国代理。

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

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

**IP/Host:** 特定 IP 地址（例如， `1.2.3.4`)

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

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

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

**代理类型：** `HTTP` 或 `HTTPS`

**IP/Host:** `ddc.oxylabs.io`

**端口：** `8001`

对于自助服务独享数据中心代理，端口表示来自已获取 [代理列表](/products/cn/proxies/dedicated-datacenter-proxies/self-service/proxy-list.md).

#### ISP代理

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

**IP/Host:** `isp.oxylabs.io`

**端口：** `8001`

对于 ISP 代理，端口会分配给一个特定的 IP 地址及其位置。因此，端口 `8001` 将始终选择你 [代理列表](/products/cn/proxies/isp-proxies/proxy-list.md).

中的第一个 IP。如果你希望每个请求都获得不同的 IP，请将端口改为 `8000` 以启用 [代理轮换](/products/cn/proxies/isp-proxies/proxy-rotation.md).

#### 独享ISP代理

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

**IP/Host:** `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).

### 第 10 步

之后，打开一个新标签页和任意网站，你会看到类似这样的消息（图片来自 [ParseHub](https://help.parsehub.com/hc/en-us/articles/115001324853-Adding-Custom-Proxies-to-ParseHub-for-all-Paid-Plans-)，你的具体信息会不同）：

<img src="https://oxylabs.io/oxylabs-web/ZpBw6B5LeNNTxErz_6d79a75a-5a85-443f-88d8-d49f5286854c_authentication.png?auto=format%2Ccompress&#x26;rect=0%2C0%2C974%2C438&#x26;w=3840&#x26;h=438&#x26;q=75" alt="" width="563">

在那里，输入你的代理用户凭据（可在 [Oxylabs 控制面板](https://dashboard.oxylabs.io/)):

| 代理类型           | 示例                                                                                                           |
| -------------- | ------------------------------------------------------------------------------------------------------------ |
| 住宅代理和移动代理      | <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 %}

就是这样！你已成功将 Oxylabs 代理与 ParseHub 集成。查看原始的 ParseHub 集成博客文章 [此处](https://oxylabs.io/blog/proxy-integration-with-parsehub).


---

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