# グループ抽出 - 連続ページURL

{% hint style="success" %} <mark style="color:$success;">**ちょっと待って！**</mark> \*\* より簡単に連続ページURLを生成する方法を知る\*\*

数字で区切られたページをグループ抽出しようとする場合、[ページネーションテンプレート機能](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/I8js41AfLS5QdXKB7e8A/~/edit/~/changes/9/getting-started/databoard-features/settings-pagination-templates)を使用すれば、1,2,3…ページアドレス取得の段階なしに、より簡単に進行できます。ページネーションテンプレートは「次のページ」ボタンを自動的にクリックしながら連続ページを抽出する方式です。
{% endhint %}

***

## 使い方

{% stepper %}
{% step %}

#### アドレス規則を確認する

抽出しようとするウェブページでページ番号を押しながら、アドレス（URL）がどのように変わるか確認してみてください。ほとんどの場合、<mark style="background-color:red;">page=</mark> の後の数字だけが変わる構造を持っています。（1ページ目はパラメータが省略されている場合もあります。）

[<mark style="color:$success;">https://www.example.com/categories/420186/?sort=latest</mark>](https://www.example.com/categories/420186/?sort=latest)

[<mark style="color:$success;">https://www.example.com/categories/420186?page=2\\\\\&sort=latest</mark>](https://www.example.com/categories/420186?page=2\\\\\&sort=latest)

[<mark style="color:$success;">https://www.example.com/categories/420186?page=3\\\\\&sort=latest</mark>](https://www.example.com/categories/420186?page=3\\\\\&sort=latest)

この原理を利用して、1つのURLで全ページのページネーションアドレスを簡単に作成できます。

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/vL4sqG06ffkx65D4L87p/%E1%84%91%E1%85%A6%E1%84%8B%E1%85%B5%E1%84%8C%E1%85%B5%E1%84%82%E1%85%A6%E1%84%8B%E1%85%B5%E1%84%89%E1%85%A7%E1%86%AB%20%E1%84%8C%E1%85%AE%E1%84%89%E1%85%A9.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### URL自動生成ツールを活用する

**A. 対話型AIサービスを利用する&#x20;**<sup><mark style="color:green;">**おすすめ**<mark style="color:green;"></sup>

ChatGPTのようなLLMベースの対話型AIサービスを利用すれば、簡単に連続ページアドレスを生成できます。下記の例のように、抽出しようとするページアドレスのパターンを確認して「*Page番号を1から30まで入れたURLアドレスを作って*」と話してみてください。

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/0RKGqSWNeQqhSmHu4pCG/page%20url.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Listlyテストページリンク：** [**https://test.listly.io/pagination/basic?page=2**](https://test.listly.io/pagination/basic?page=1)

<img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/f6r8A3PQQACvFWXr8LpY/page%20url%202.png" alt="" data-size="original">
{% endhint %}

**B. URLビルダーを使用する**

Googleなどのポータルで「*sequential url generator*」または「url builder」を検索すれば、様々な無料ウェブツールを見つけることができます。このヘルプでは例として**Online Sequential Number, URL & Text Generator**サービスを活用してみます。\
（URL構造さえ理解すれば、Excel関数でも簡単に作成できます。）

{% hint style="info" %}
利用サービスリンク：[Online Sequential Number, URL & Text Generator](https://reznortech.rf.gd/online-sequential-number-text-url-link-generator.php?utm_source=chatgpt.com\&i=1)
{% endhint %}

利用サービスリンクに移動すると、以下のような画面が表示されます。

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/3E1VdLVqRdK81DiToAwF/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%201.png" alt=""><figcaption></figcaption></figure>

以下の例のようにオプションを設定して連続ページURLを生成してみてください。

<mark style="color:$success;">例URL：</mark>[<mark style="color:$success;">https://www.example.com/categories/420186?page=2\\\\\&sort=latest</mark>](https://www.example.com/categories/420186?page=2\\\\\&sort=latest)

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/PBTkWqGkJNZz57ek5h4C/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%202.png" alt=""><figcaption></figcaption></figure>

\ <mark style="color:red;">➊</mark> ページ番号の前、変わらない部分を入力します。

<mark style="color:red;">➋</mark> ページ開始番号を入力します。\
（1ページ目はパラメータが省略される場合も多いですが、<mark style="color:$success;">page=1</mark>と入力しても問題ありません。）

<mark style="color:red;">➌</mark> ページ最終番号を入力します。

<mark style="color:red;">➍</mark> 数字の増加段階を入力します。通常は1,2,3…順次的に増加するため、1を入力してください。

<mark style="color:red;">➎</mark> ページ番号の後、変わらない部分を入力します。なければ空欄のままにしても結構です。入力完了後、下部の **\[Generate]** ボタンをクリックすると、連続URLが自動生成されます。
{% endstep %}

{% step %}

#### 結果を活用する

入力した範囲に応じてURLが順次生成されたら、生成されたアドレスをコピーして**グループ抽出**に貼り付けてください。複数のページを一度に抽出できます。

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/itYe0i4g6JFFocN2QSMT/%E1%84%80%E1%85%B3%E1%84%85%E1%85%AE%E1%86%B8%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF%203.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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:

```
GET https://help.listly.io/docs/ja/getting-started/result-page-features/group-extraction-sequential-urls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
