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 data from web ...
Power Automate
Unanswered

Extract data from web page: Pager won't work

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

i'm trying to extract list of participants from a Linkedin event (not created by me).

DavideBonvicini_1-1665136202612.png

 

I've set "extract data from web page", set data to collect and set the pager, set max web page to process.

DavideBonvicini_0-1665136171879.png

 

Running automation won't work, data are collected only from first page.

 

Thanks a lot.

Davide

 

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    The selector for the pager element is probably not very great.

    Can you share the full selector, and the HTML code of the web page?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Henrik_M ,

    I've tried to highlight the right button.😅

     

    Selector:

    button[id="ember278"], html > body > div:eq(5) > div:eq(2) > div:eq(1) > div > div:eq(0) > main > div > div > div:eq(2) > div > div > button:eq(1)

     

    Here the source code:

    view-source:https://www.linkedin.com/search/results/people/?eventAttending=%226948184570303295489%22&origin=EVENT_PAGE_CANNED_SEARCH&sid=d5c

     

    Let me know if is what you need,

    Thanks

     

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Can't access the page.

     

    Henrik_M_0-1665157971893.png

     

    Save the HTML file and attach it ✌

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry i'm not able to attach html or txt, format not permitted.

     

    I give you instructions to find the event:

    1. search on linkedin "EuroBLECH" and filter companies
      • DavideBonvicini_0-1665385953484.png
    2. Click on first result and go to events tab
      •  DavideBonvicini_1-1665386020063.png
    3. in the page of the event click on "networking" tab 
      • DavideBonvicini_2-1665386107500.png
    4. Finally in the bottom of the networking tab you can see button "See all 1533". DavideBonvicini_3-1665386214528.png

     

    Now you are in a specific filtered linkedin search about attendees of the event.

     

    Let me know if it's clear enough,

    Thanks

  • Jamar_Forsythe Profile Picture
    Microsoft Employee on at

    Some sites have a more complex DOM than others, this results page seems to have some areas that are not uniform throughout the page. The name section of the results all forms down to an Anchor tag, but some of them go further down into two more nested Span tags. (See Advanced Settings window below) It seems the users who have their name removed (LinkedIn Member) from the search are where there's some lack of uniformity amongst other parts. So you are left with two quick options:

     

    You can point to the Anchor tag (this results in the names picking up an extra part "...profile" at the end) 

    Jamar_Forsythe_9-1666014346444.png

    Jamar_Forsythe_2-1665956323598.png

    or point to the nested Span tag (this results in the "LinkedIn Member" names showing up empty.)

    Jamar_Forsythe_8-1666014267813.png

    Jamar_Forsythe_6-1666014105236.png

    Also, the pager element changes its "Id" tag on every load "emberXXXX" so to mitigate that, you can point to the selector that's most unique, from what I looked at it seems the "aria-label" attribute with the value "Next" is only present on this element (you can use document.querySelectorAll('button[aria-label="Next"]'); in the browsers console as a way to test this.)


    For the other details Role, Location, point to the Div wrapped around them, I captured them by targeting the white space to the far right of them.

     

    Lastly it seems that for some of the page loads, it may take longer than the default timeout due to the large amount of nesting and complex structure of some of the elements on the part of the site, so I increased the timeout to "120" and the "Process data upon extraction" may be necessary for the same reason.

    Jamar_Forsythe_7-1666014151985.png

    Jamar_Forsythe_0-1665952990800.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Jamar, 

    thanks very much for your answer.

     

    I've set all code as you said but pager wont work. He don't recognize the button and skip action.

    I tried different variables for button:

    button [aria-label="Next"]

    button aria-label="Next"

     

    This is default pager: 

    button[id="ember112"], html > body > div:eq(4) > div:eq(2) > div:eq(1) > div > div:eq(0) > main > div > div > div > div:eq(1) > div > button:eq(1)

     

  • Jamar_Forsythe Profile Picture
    Microsoft Employee on at

    You added a space between 'button' and '[' that would imply two different elements nested directly under each other in selector notation, you should write it as button[aria-label="Next"] all touching, try this.

     

    Reply with a screenshot of your Advance Settings with your selectors visible. I tested this today on a different machine and it works.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, i used the paging button[aria-label="Next"] but not working.

    The result is only from the first page.

     

    Screen attached.

    Screenshot 2022-11-03 082501.PNG
    Screenshot 2022-11-03 082500.png
  • Jamar_Forsythe Profile Picture
    Microsoft Employee on at

    Do you have Max Pages set to 1?

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
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard