web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can not scrape next pa...
Power Automate
Answered

Can not scrape next page due to no next button available

(0) ShareShare
ReportReport
Posted on by 6

Hello everyone,

I am trying to use PAD to build a web scraper system to automatically catch the title and url from my company's website.
However, I failed to move to next page, because my site doesn't have next page button.
If I choose second page link as pager, PAD will stuck and repeating scrape page2....

4.jpg

 

I found the CSS pager li:eq(value) is different for example:
if set page 2 as pager, the value is li:eq(1)
if set page 3 as pager, the value is li:eq(2)

Please kindly give me some advice that how to deal pager setting to catch every pages?

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    If there is a page number in the url you could extract the last number in the page list (in the example you provided it's 11) and insert it in the URL.
    But because you did not provide an URL it's somewhat difficult to help.

    I have added an example, just paste the contents of the pdf file and paste it into PAD

    Don't worrie about the amount of text in the file, you will end up with 8'ish lines in PAD😊

  • JerryGT Profile Picture
    6 on at

    Hello Highboy,

    Thanks a lot for your reply,

    link example as below

    page1 https://example/News.aspx?n=C766A58F3C1B460C&sms=95DAB778B6CB4C7F&page=1&PageSize=20

     

    page6 https://example/News.aspx?n=C766A58F3C1B460C&sms=95DAB778B6CB4C7F&page=6&PageSize=20

     

    page11 https://example/News.aspx?n=C766A58F3C1B460C&sms=95DAB778B6CB4C7F&page=11&PageSize=20

     

    Do you mean insert page 11's url like below photo?

    JerryGT_0-1636289599705.png

     

  • Verified answer
    Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    A simple solution is to extract the max number of pages (in your example 11) and insert it into your url, and then just loop through all  of them using something like this

     https://example/News.aspx?n=C766A58F3C1B460C&sms=95DAB778B6CB4C7F&page=%PAGENUMBER%&PageSize=20 where %pagenumber% is the value you extracted.

    Highboy_0-1636289900653.png


    I have added an example, just paste the contents of the pdf file and paste it into PAD

    Don't worrie about the amount of text in the file, you will end up with 8'ish lines in PAD

     

    Highboy_0-1636319640776.png

     

  • JerryGT Profile Picture
    6 on at

    Hello Highboy,

    Thanks a lot for your reply,

    I don't know why that I failed to paste PDF content to my PAD.

    But follow with those steps in your photo, I got data for every pages, it works~

    Thank you very much!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard