# How to specify pagination

**URL:** <https://forum.seocontentmachine.com/t/how-to-specify-pagination/359>\
**Category:** feature\
**Tags:** dynamic-scraper, done\
**Created:** [June 19, 2024, 6:33am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359 "2024-06-19T06:33:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 19, 2024, 6:33am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/1 "2024-06-19T06:33:15Z")

</div>

When specifying paginations with sequential numbers, it would be very useful if all we had to do was specify the base URL and the last number of the sequential number to cover all the pages in between.  
Right now, for example, if a listing has 100 pages, 100 URLs must be entered.  
Please let me know if this feature is currently available and I may have missed it.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 19, 2024, 6:37am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/2 "2024-06-19T06:37:04Z")

</div>

Can you give me example of the paging urls?

Normally you can just set page count 1,2 3 etc.

Yes you would need to create those 100 urls.

Although you could use the keyword combiner to do it.

I am also planning out feature to add proper paging element as discussed here:

> [@Scraping getyourguide.com](https://forum.seocontentmachine.com/t/scraping-getyourguide-com/308/14):
>
> I can identify all the items I want to extract with the picker, but I don’t know how to select them so that it scraps my data onto the next pages.

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/d86293e07533e2a1befd47aaffe9fe7b269ff9f3.png)

Maybe we can do both url and dynamic paging all at the same time

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 19, 2024, 6:44am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/3 "2024-06-19T06:44:09Z")

</div>

For example, the following URL.

> **[SEO Archives](https://www.searchenginejournal.com/category/seo/page/2/)**
>
> Your source for all things search engine optimization (SEO), including breaking news, algorithm updates, guides, strategies, tactics, tips, trends, tools, and more!

What is ‘the keyword combiner’ and is it a SCM feature?

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 19, 2024, 6:52am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/4 "2024-06-19T06:52:47Z")

</div>

So page through this correct?

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/edacc961c9ba40a767a112c5bce3961a6b10535f.png)

And grab all articles like this

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/80dcce3040e05cd92073fcfdeaf34f422a1eca57.jpeg)

–

Keyword combiner I mean this:

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/880c1c5d33700aade22e754c590e0f52a6d9101a.png)

But its not ideal, you still need to type in numbers 1 - 100

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 19, 2024, 6:58am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/5 "2024-06-19T06:58:05Z")

</div>

That is a useful feature. Excellent!  
You’re right, this still requires manual input.  
Last time I used AI to output sequentially numbered URLs to save me the hassle.

I think everyone will use the automatic sequential number generation function of Pagination, so please consider adding the function.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 19, 2024, 7:13am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/6 "2024-06-19T07:13:41Z")

</div>

Yes will work on it now.

Maybe have 2,

1. Quickly generate urls with number range
2. Paging element clicker

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 19, 2024, 7:48am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/7 "2024-06-19T07:48:38Z")

</div>

Quick url pager generate tool added

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/43bf76e4172650680135106fdb7ff92e58024e6a.png)

Modal pops up

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/5d8a1a8ac3bea630946bb1603e433da69aa470b2.png)

You just enter url and the special %pager% macro

%pager% replaced with actual page count

Click generate

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/5affd8d56a9c5d6ec19b2f100871386b960ee5ee.png)

Feature already live on windows setup.

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 19, 2024, 8:54am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/8 "2024-06-19T08:54:34Z")

</div>

Wow. Awesome!  
I am a Mac user and I am looking forward to it.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 19, 2024, 9:30am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/9 "2024-06-19T09:30:34Z")

</div>

Mac image uploading now

Will be ready in about 15 mins

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 19, 2024, 11:17am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/10 "2024-06-19T11:17:59Z")

</div>

I used it immediately and it worked.  
Thank you!  
One question: why should I bother inserting the current target URL?  
I can’t think of a use case where I wouldn’t use the currently specified page.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 19, 2024, 11:33am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/11 "2024-06-19T11:33:37Z")

</div>

It’s just a shortcut.

Use which one you need.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 24, 2024, 5:06am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/12 "2024-06-24T05:06:16Z")

</div>

Added pagination action:

Eg table with pager

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/72cf03125d91e6497540f33bfe6a0f199ba76528.png)

Pick the ‘next’ button

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/cf9e7972c934be52d8d927d0667d724209bf7d32.png)

Add action ‘next page’

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/e8d22a8139bd634adca52eb83a6b55d84b6d65b9.png)

Specify how many times to click the page next button

![image](https://forum.seocontentmachine.com/uploads/default/original/1X/f1425a983b596b5ab6e77e123e86a97c2b6e6b5a.png)

When running…

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/22cd8ab716aa96a072a3f0b901d2ee126d9d9f7b.png)

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 24, 2024, 6:08am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/13 "2024-06-24T06:08:22Z")

</div>

Seems useful.  
What should I enter for the target urls when specifying the next page element?

update  
All I had to do was enter the current URL.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 24, 2024, 9:15am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/14 "2024-06-24T09:15:01Z")

</div>

Needs to be the css selector for the next button so it knows to click on it.

Yes you can also use page url instead.

However for some tables there is no url, so the next button must be used.

---

<div class="post-metadata">

**Author:** ![bukit](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/bukit/32/546_2.png) [@bukit](https://forum.seocontentmachine.com/u/bukit)\
**Post date:** [June 25, 2024, 4:28am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/15 "2024-06-25T04:28:17Z")

</div>

This is the birth of automation 🥳

Would love to see expanded UI section instead of dropdown and more “automation” functionality (lite RPA).

> **[Home](https://github.com/OguzhanUmutlu/jsautogui/wiki)**
>
> JSAutoGUI is an npm package for node.js. Inspired by pyautogui from python. (but noticably faster and better) - OguzhanUmutlu/jsautogui

> **[GitHub - TechStark/opencv-js: OpenCV JavaScript version for node.js or browser](https://github.com/TechStark/opencv-js)**
>
> OpenCV JavaScript version for node.js or browser

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 25, 2024, 5:18am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/16 "2024-06-25T05:18:44Z")

</div>

You want to be able to run your own javascript functions on the page right?

While opencv is more for image processing?

---

<div class="post-metadata">

**Author:** ![bukit](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/bukit/32/546_2.png) [@bukit](https://forum.seocontentmachine.com/u/bukit)\
**Post date:** [June 25, 2024, 5:23am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/17 "2024-06-25T05:23:35Z")

</div>

When I see the changelog and you add click() function, it trigger me to research what possible 😁

 ![1000155046](https://forum.seocontentmachine.com/uploads/default/original/1X/f716d1b3141afebc1bab12cd8f3f357aeb67ddca.jpeg)

OpenCV for OCR and image/pdf/visual processing.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 25, 2024, 5:29am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/18 "2024-06-25T05:29:49Z")

</div>

It may or may not be possible to inject the jsautogui script into all pages.

JSAutoGUI specifically, uses nodejs, which is technically not available to sandboxed browser windows that SCM uses to scrape web pages.

However you always have access to document and 99% cases jquery for automation purposes.

So you can do things to the dom and click on it, but you can’t move the mouse or type the keyboard.

Its possible to allow you to click on action dropdown and select ‘javascript’ then you can write your own code.

There is theoretical problem with giving browsers access to nodejs, as it means they have access to your file system, ie give it possibility to do malicious things like create 1000s of files or start deleting files on your hard drive.

---

<div class="post-metadata">

**Author:** ![bukit](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/bukit/32/546_2.png) [@bukit](https://forum.seocontentmachine.com/u/bukit)\
**Post date:** [June 25, 2024, 5:37am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/19 "2024-06-25T05:37:27Z")

</div>

Oh ok Jquery is the keyword, I hate JS 😅, I’m more a python student, well the high level overview is scrape and automate.

Maybe similar automation to lite RTILA, using 80/20 rule. The click() is already exciting feature and open new possibilities.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 26, 2024, 4:26am UTC](https://forum.seocontentmachine.com/t/how-to-specify-pagination/359/20 "2024-06-26T04:26:11Z")

</div>

Yep full automation is limited to whatever you can do using jquery or normal javascript document.

There are some higher level libraries like selenium etc tools used normally for automated ui testing.
