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 / Scrapping multiple pages
Power Automate
Unanswered

Scrapping multiple pages

(1) ShareShare
ReportReport
Posted on by 2

Hi

I am trying to scrape multiple pages from this "https://www.portofaden.net/en/ship-traffic-job/index?page=14" website. I get the first page, but despite hitting set page as element i dont get anything more. Below is the "code" if you can say and the screen from the app. 

 

 

gaute98_0-1694262054535.png

 

 

WebAutomation.LaunchChrome.LaunchChrome Url: $'''https://www.portofaden.net/en/ship-traffic-job/index?page=1''' WindowState: WebAutomation.BrowserWindowState.Maximized ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> Browser
Excel.LaunchExcel.Launch Visible: True LoadAddInsAndMacros: False Instance=> ExcelInstance2
WebAutomation.ExtractData.ExtractTableUsingPagingFromNumberOfPagesInExcel BrowserInstance: Browser Control: $'''html > body > div > div > div:eq(1) > div > div > div:eq(1) > article > div > div:eq(1) > div > div > div > div > table > tbody > tr''' ExtractionParameters: {[$'''td:eq(0)''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''td:eq(5)''', $'''Own Text''', $'''''', $'''Value #2'''], [$'''td:eq(7)''', $'''Own Text''', $'''''', $'''Value #3'''] } MaxWebPagesToProcess: 10 UsePhysicalClick: True PagerCssSelector: $'''div[id=\"w0\"] > ul > li:eq(12) > a, html > body > div > div > div:eq(1) > div > div > div:eq(1) > article > div > div:eq(1) > div > div > div > ul > li:eq(12) > a''' PostProcessData: False TimeoutInSeconds: 60 ExcelInstance=> ExcelInstance2
Excel.LaunchExcel.Launch Visible: True LoadAddInsAndMacros: False Instance=> ExcelInstance2

 

 

 

  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at

    Hi @gaute98 ,

     

    I know there is an easier way to do this but having said that, I put this together really fast and it works.  Please review.

     

    Essentially in step #3 I go to the last page in the pager by clicking on the ">" element and then capture 492 as a number in 4 and 5. 

     

    Step #7 is how I loop through pages.

     

    From there for each page, I extract the entire html table, write to excel, and then go to the next page, repeat, etc.  I didn't go past page three here but works in testing and in theory will go through page 492.  If this was helpful, please mark as a solution so others can find it too.

     

    trice602_0-1694283153043.png

     

    trice602_1-1694281098635.png

     

    trice602_2-1694281162078.png

     

     

     

     

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The reason why you did not succeed and why @trice602 suggested a more complex workaround that actually works, is because the paging functionality in Extract data from web page does not really work too great. It is actually quite bad. So, the best way to do something like this is actually to build a loop that will click through pages and extract each page individually.

     

    Here's a pretty good tutorial on that: https://www.youtube.com/watch?v=yvoUBwCqdn0&ab_channel=AndersJensen

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard