# Group Extraction - Generate 1,2,3…Sequential Page URLs

{% hint style="success" %} <mark style="color:$success;">**Wait!**</mark> **Learn about an easier way to generate sequential page URLs**

If you're trying to group extract pages numbered sequentially, using the [Pagination Template feature](https://help.listly.io/getting-started/databoard-features/settings-pagination-templates) makes it simpler—you can skip the step of getting 1,2,3...page addresses. Pagination templates automatically click 'next page' buttons to extract sequential pages.
{% endhint %}

***

## How to Use&#x20;

{% stepper %}
{% step %}

#### Check the URL pattern

As you click through page numbers on the web page you want to extract, watch how the URL changes. In most cases, only the number after <mark style="background-color:red;">page=</mark> changes. (Page 1 may have the parameter omitted.)

[<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)

Using this principle, you can easily create pagination addresses for all pages with a single URL.

<figure><img src="https://content.gitbook.com/content/goHfMCeMlqJPW61OR5d1/blobs/8eULrWsyZiSWtfeG6RwI/%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 %}

#### Use an automatic URL generation tool

**A. Use conversational AI service&#x20;**<sup><mark style="color:green;">**recommended**<mark style="color:green;"></sup>

You can easily generate sequential page addresses using LLM-based conversational AI services like ChatGPT. After checking the page URL pattern like the example page below, try saying "Create URL addresses with Page number from 1 to 30".

<figure><img src="https://3090065457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgoHfMCeMlqJPW61OR5d1%2Fuploads%2FtvESWMclzJent6t43VB3%2Flistly-sequential-urls.png?alt=media&#x26;token=cbf73402-917b-4224-8167-e0e606204d5d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Listly test page link:** [**https://test.listly.io/pagination/basic?page=2**](https://test.listly.io/pagination/basic?page=1)

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

**B. Use URL builder**

Search "sequential url generator" or "url builder" in Google or other search engines to find various free web tools. This guide uses **Online Sequential Number, URL & Text Generator** as an example.\
(If you understand URL structure, you can easily create them with Excel formulas too.)

{% hint style="info" %}
Service link: [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 %}

When you go to the service link, this screen appears:

<figure><img src="https://content.gitbook.com/content/goHfMCeMlqJPW61OR5d1/blobs/ISJBX6cA1okv1VF3pBjH/%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>

Set options like the example below to generate sequential page URLs:

<mark style="color:$success;">Example 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/goHfMCeMlqJPW61OR5d1/blobs/WooBMVpnOCHlFEgi0N2Y/%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>

Enter the options as follows and click the Generate button:

* Enter the unchanging part before the page number.
* Enter the starting page number. (Page 1 often has parameters omitted, but entering page=1 still works fine.)
* Enter the ending page number.
* Enter the increment step. Usually it's 1,2,3... sequential, so enter 1.
* Enter the unchanging part after the page number. Leave blank if there isn't one.
  {% endstep %}

{% step %}

#### Use the results

Once URLs are generated sequentially based on your input range, copy the generated addresses and paste them into **Group Extraction** to extract multiple pages at once.

<figure><img src="https://content.gitbook.com/content/goHfMCeMlqJPW61OR5d1/blobs/go4VpcoiRY28zgHygBIl/%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 %}
