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 / Power Automate - Websc...
Power Automate
Unanswered

Power Automate - Webscraping Help

(0) ShareShare
ReportReport
Posted on by

Hello! I am very new at using Power Automate, and have little to no knowledge in coding.

 

I am trying to create a flow where after I extract data from a web page, I can change the URL address and repeat the process.

 

The website URL that I am scraping from has a number at the end of the line, and I want to be able to change that number by one, in a loop.

 

If anyone can help, that would be much appreciated.  Thank you.

Categories:
  • PhilipTreacy Profile Picture
    120 on at

    Hi @JOBIZZLE 

     

    Without knowing the website you are trying to get data from I can only give an example using another site.

     

    Generally the process would be:

     

    1. Start a browser

    2. Set a variable PageNum to control what page to load

    3. Set a variable Continue to exit the loop (stop loading pages) when you get to the last page

    4. Load the page

    5. Scrape the data

    6. Increment the PageNum variable

    7. Repeat from Step 4.

     

    My sample flow looks like this

    pascrape.png

     

    Note: I haven't got a step to scrape data, you'll have to add that.

     

    In Step 6, I've added a condition On error so that if the requested page does not load (this indicates there are no more pages on the website) 

     

    paerr1.png

     

     

     

    Then the variable Continue is set to false 

     

    paerr2.png

     

    This should stop the loop and stop any more pages being loaded/scraped.

     

    In reality the way you end the loop will depend on the website and how it behaves when you try to load a page that doesn't exist.

     

    Give this a go and if you get stuck please pose back here.

     

    Regards

     

    Phil

     

     

     

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 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard