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 / Extract dynamic Data f...
Power Automate
Unanswered

Extract dynamic Data from WebPage

(0) ShareShare
ReportReport
Posted on by 65

Hi, I'm currently extracting all the data from a website as some contents change on search of something.

 

For e.g., in a Food Recipe website, I search for Tomato Rice. There will be more contents, but Ingredients and Instructions will be common for all the recipes. So, I'm extracting all the data as the placeholder of Ingredients and Instructions will be different for each recipe. 

On extraction, it'll come as DataWebPage[0]['result'] and inside that the extracted will be stored as below. But it's failing sometimes as it couldn't find the exact text. But this should happen dynamically.

 

Screenshot 2023-12-21 122016.pngScreenshot 2023-12-21 124705.png

My task is I need to extract all the data and from that I need to find the "Ingredients" and extract the ingredients part alone. Similarly, I need to find "Instructions" and extract the instructions part alone. After extracting them separately, I need to store them in a variable.

 

Please help me to resolve this issue,

Thanks in advance for your help.

I have the same question (0)
  • CU31080729-3 Profile Picture
    502 Moderator on at

    Hi,Sumitra_Sai 

    Can you share screenshot of you flow and link of this website , its better for more understanding

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Chetan Ninghot

  • Sumitra_Sai Profile Picture
    65 on at

    Hi @Chetan_Ninghot , thanks for your reply

     

    This is the only action I have used for extraction

    Sumitra_Sai_0-1703144629625.png

    Besan Ladoo Recipe | Besan Ke Ladoo | Besan Laddu (hebbarskitchen.com)

    Sumitra_Sai_1-1703144694464.pngSumitra_Sai_2-1703144717163.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try using Get details of web page and extract the entire page source.

    Agnius_0-1703148989816.png

     

    Then, when you have the page source text, you can use Parse text with regular expressions enabled to retrieve the specific values.

    You can use the following regular expression to get the ingredients: 

    (?<="recipeIngredient":\[)[^\]]*(?=\])

     

    It would look like this:

    Agnius_1-1703149051642.png

    It will return the ingredients into a variable called %Match%.

     

    You can then use this one for the instructions:

    (?<="recipeInstructions":\[.*"text":")[^"]*(?=","name")

    The instructions will actually be returned as a list of values, so you need to make sure to set the Parse text action to return all matches, instead of the first occurrence only. The action will look like this:

    Agnius_2-1703149109716.png

     

    It will return the instructions into a variable called %Matches% that will be a list of text strings.

     

    So, you might want to use Join text afterwards to join the list into a single string.

    -------------------------------------------------------------------------
    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.

  • Sumitra_Sai Profile Picture
    65 on at

    Hi @Agnius , thanks for your help.

     

    I tried the method which you have responded. But the Match is taking as empty.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Are you sure that you made your Get details of web page action extract the page source specifically, and not just the text?

    I've tried it and it works fine for me.

    Try copying and pasting the following code to your PAD flow designer to have the actions created for you:

    WebAutomation.GetDetailsOfWebPage BrowserInstance: Browser DetailsType: WebAutomation.DetailsType.Source Details=> WebPageProperty
    Text.ParseText.RegexParseForFirstOccurrence Text: WebPageProperty TextToFind: $'''(?<=\"recipeIngredient\":\\[)[^\\]]*(?=\\])''' StartingPosition: 0 IgnoreCase: False OccurrencePosition=> Position Match=> Match
    Text.ParseText.RegexParse Text: WebPageProperty TextToFind: $'''(?<=\"recipeInstructions\":\\[.*\"text\":\")[^\"]*(?=\",\"name\")''' StartingPosition: 0 IgnoreCase: False OccurrencePositions=> Positions Matches=> Matches
    

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard