> For the complete documentation index, see [llms.txt](https://help.listly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.listly.io/docs/zh-hans/getting-started/extension-features/wang-zhi-sheng-cheng-qi-url-builder.md).

# 网址生成器(URL Builder)

当你需要多个具有相同 URL 模式的页面网址时（例如以 1、2、3… 编号的商品页面），可以根据该模式来生成 URL。网址生成器只需几个示例就能自动创建完整的网址列表，并将它们以多个标签页打开，或连接到 Deep Extract。

{% stepper %}
{% step %}

### 打开网址生成器

在 Listly 面板中，点击**网址生成器(URL Builder)**。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FsSzA7Kx4HHSAsNJj6hMA%2Fimage.png?alt=media&amp;token=291cea45-2d35-46e1-962f-8794bb44a481" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## 添加网址

将网址加入 builder 的方式有两种：

* **从标签页选择（Pick from a tab）** — 打开两个以上相同域名的页面，Listly 会检测共同模式并自动显示在这里。
* **自行输入（Type your own）** — 在右侧的输入框中直接粘贴你的网址。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FoUU4MQUieHiKgfm3PnLD%2Fimage.png?alt=media&amp;token=a515b2df-0710-47c6-a52b-063d3c4bd751" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
不知道从哪里开始吗？点击 **试用示例（Try the example）** 加载示例，看看它是如何运作的。
{% endhint %}
{% endstep %}

{% step %}

## 查找 URL 模式

当你输入 **两个** 以上遵循相同模式的网址后，Listly 就会识别出该模式。例如：

```
https://test.listly.io/goods/0
https://test.listly.io/goods/1
```

Listly 会将此模式识别为 `test.listly.io/goods/{number}`。点击 **［生成其余网址（Fill in the rest）］**，左侧就会出现网址调整面板。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FXx5gzJqHbw8kBuXQYeox%2Fimage.png?alt=media&amp;token=c4ed3fa0-2730-49ca-909b-457c753eee6f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## 调整数字

检测到模式后，可以使用 **Numbers** 面板精确控制要创建哪些网址。

* **起始（Start）** — 第一个数字
* **结束（End）** — 最后一个数字
* **间隔（Step）** — 每次数字增加的量

例如，将 **起始（Start）** 设为 `0`、**结束（End）** 设为 `10`、**间隔（Step）** 设为 `1`，会生成 11 个网址（0 到 10）。若将 **间隔（Step）** 改为 `2`，则会生成 6 个网址（0、2、4、6、8、10）。

生成的网址会显示在右侧，总数会显示在 **Addresses** 旁边。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2F9QtJncn9I1PPZ8kumEIA%2Fimage.png?alt=media&amp;token=cdf1a030-832e-4214-bf82-83019e3d2e8f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FEgGDt468xX4fuddzmcNJ%2Fimage.png?alt=media&amp;token=10b706fe-38fc-468f-ad9d-24f4f9c456eb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## 提取数据

当网址列表如你所愿完成后，可以在窗口下方选择两种方式之一。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FGlK7A4Ttz9X9XuXF63TW%2Fimage.png?alt=media&amp;token=36e03271-f8e8-4ab6-a5fd-4d1f99bbba3a" alt=""><figcaption></figcaption></figure>

### 1. 以标签页打开（Open as tabs）

如果你想在提取前先检查页面，请点击 **以标签页打开（Open as tabs）**。当你想先查看页面时，这个功能很方便。

在 **以标签页打开（Open as tabs）** 窗口中，选择要打开的标签页数量（最多 100 个），然后点击 **开始打开（Start opening）**。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FWVPQOkxWSd2jG1CDyPBr%2Fimage.png?alt=media&amp;token=6765851d-b6c3-433c-8ff4-f79bd2af129c" alt=""><figcaption></figcaption></figure>

如下图所示，当标签页打开后，你可以通过 **Extract Tabs** 从打开的标签页中收集数据。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FSMq7OrUN1f0e9qXFD5kS%2Furl%E1%84%87%E1%85%B5%E1%86%AF%E1%84%83%E1%85%A5%E1%84%90%E1%85%A2%E1%86%B8.gif?alt=media&amp;token=eb8686bc-bf96-4d0c-ab21-38abf442b02a" alt=""><figcaption></figcaption></figure>

### 提取（Extract）

点击 **提取（Extract）**，系统会对所有生成的网址自动执行 Deep Extract。这是从所有页面最快获取数据的方式。关于此功能的使用方法，请参阅 **Deep Extract** 指南文档。

<figure><img src="https://5118966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlkvcuviCyyU871Augk5%2Fuploads%2FafQFZKSnzAlzgmzpKE2R%2Furl%E1%84%87%E1%85%B5%E1%86%AF%E1%84%83%E1%85%A5%E1%84%89%E1%85%B5%E1%86%B7%E1%84%8E%E1%85%B3%E1%86%BC.gif?alt=media&amp;token=0a9c57c1-fb17-4a7b-a1b5-b26e578c03dc" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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://help.listly.io/docs/zh-hans/getting-started/extension-features/wang-zhi-sheng-cheng-qi-url-builder.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.
