> 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-hant/getting-started/extension-features-zh-hant/wang-zhi-chan-sheng-qi-url-builder.md).

# 網址產生器(URL Builder)

當你需要多個具有相同 URL 模式的頁面網址時（例如以 1、2、3… 編號的商品頁面），可以根據該模式來產生 URL。網址產生器只需幾個範例就能自動建立完整的網址清單，並將它們以多個分頁開啟，或連接到 Deep Extract。

{% stepper %}
{% step %}

## 開啟網址產生器

在 Listly 面板中，點擊**網址產生器**。

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FhHjih3wKI0bOR95vijZ9%2Fimage.png?alt=media&amp;token=68523961-a1b8-450b-87c0-4569f2a8a90c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## 新增網址

將網址加入 builder 的方式有兩種：

* **從分頁選擇（Pick from a tab）** — 開啟兩個以上相同網域的頁面，Listly 會偵測共同模式並自動顯示在這裡。
* **自行輸入（Type your own）** — 在右側的輸入框中直接貼上你的網址。

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FUJYUX0NzMPdOC3CUhw22%2Fimage.png?alt=media&amp;token=086d86c8-37c0-4798-94ec-f91dc3c402e5" 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://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2F6G6ufYrJLp5eSHkqptWV%2Fimage.png?alt=media&amp;token=59cdb5f3-4259-475f-91e6-6c021733ac95" 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://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2Fxy0F4Z8gsfD60tp54eef%2Fimage.png?alt=media&amp;token=99fe46fa-50ce-47ca-81dd-b442c9714ba4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FoBr7gYyqIhDSv7CezBEw%2Fimage.png?alt=media&amp;token=5f3a188e-eb34-45c2-bf31-462a0284f450" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## 擷取資料

當網址清單如你所願完成後，可以在視窗下方選擇兩種方式之一。

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FoSEZS6MQKLGFP634wWdb%2Fimage.png?alt=media&amp;token=bbff8fad-3f7b-41b3-8c04-a1c67b1b8932" alt=""><figcaption></figcaption></figure>

### 1. 以分頁開啟（Open as tabs）

如果你想在擷取前先檢查頁面，請點擊 **以分頁開啟（Open as tabs）**。當你想先查看頁面時，這個功能很方便。

在 **以分頁開啟（Open as tabs）** 視窗中，選擇要開啟的分頁數量（最多 100 個），然後點擊 **開始開啟（Start opening）**。

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FbPzAPJGL1blRY95FTU6n%2Fimage.png?alt=media&amp;token=fb6673f5-35d1-4696-8d7c-3050bbed9f87" alt=""><figcaption></figcaption></figure>

如下圖所示，當分頁開啟後，你可以透過[**分頁擷取（Extract Tabs）**](https://help.listly.io/docs/zh-hant/~/revisions/CjIcF7FqZJApaer9TCQI/getting-started/extension-features-zh-hant/tabs-parts-zh-hant)從開啟的分頁中收集資料。

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FuYV0pogDTqGCW2HHldJa%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=81dbc54f-5846-48a2-a2be-8ffeb9e98134" alt=""><figcaption></figcaption></figure>

### 擷取（Extract）

點擊 **擷取（Extract）**，系統會對所有產生的網址自動執行**深層擷取**。這是從所有頁面最快取得資料的方式。關於此功能的使用方法，請參閱 [**深層擷取（Deep Extract）**](https://help.listly.io/docs/zh-hant/~/revisions/CjIcF7FqZJApaer9TCQI/getting-started/extension-features-zh-hant/shen-ceng-xie-qu-deep-extract)指南文件。

<figure><img src="https://1853862850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSPSOmaFPAz7khj6t7Ds%2Fuploads%2FZYgucX3zFak2tr0mgs4s%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=2b1740ee-661b-48cd-ac17-7caab14a8d5d" 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-hant/getting-started/extension-features-zh-hant/wang-zhi-chan-sheng-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.
