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 / extracting a specific ...
Power Automate
Unanswered

extracting a specific id with css

(0) ShareShare
ReportReport
Posted on by 4

hi there I am extracting a data list from a webpage

and want to get the post id

when I inspect the webpage post I can determine the post id 

but it is not visible on the webpage layout

here is an image to more clarify >>>

 

loisharks_0-1639173600929.png

 

the site page >> https://www.yad2.co.il/vehicles/private-cars?manufacturer=29&year=2015--1&area=25

post id>>  item-id="s54bev85"

 

how can I get the id of all posts using CSS selector?

 

  • VJR Profile Picture
    7,635 on at

    Hi @loisharks 

     

    You will need to play around a bit.

    For example, when I hover my mouse on the right hand side in the code, it automatically highlights the button on the left hand side on the webpage, indicating that this element is for the Google search button. Likewise you will need to do some trial and error.

    I have used Chrome in the below example.

     

    VJR_0-1639197766922.png

     

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

    Copy-paste this code into your workspace:

     

    WebAutomation.LaunchChrome.AttachToChromeByTitle TabTitle: $'''<u+202b>רכבים פרטיים של סיאט למכירה | יד2 רכב - אלפי מודעות חדשות בכל יום<u+202c>''' BrowserInstance=>gt;utomation.L Browser
    WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html | יד2 >gt;wser body er
    WebA>gt;y er div:eq(1) bAutoma>gt;:eq( div:eq(1) bAutoma>gt;:eq( div eq(1) b>gt; eq( main q(1) bA>gt;n q( div q(1) b>gt; q( div:eq(3) bAutoma>gt;:eq( div:eq(5) bAutoma>gt;:eq( div:eq(1) bAutoma>gt;:eq( div:eq(2) bAutoma>gt;:eq( div''' ExtractionParameters: {[$'''div ctTable>gt;''' div '' Extr>gt; '' div:eq(2) raction>gt;:eq( div:eq(1)''', $'''Own Text''', $'''''', $'''Price'''], [$'''div Browser>gt;:eq( div eq(1)''>gt; eq( div:eq(1) '', $''>gt;:eq( div:eq(0) '', $''>gt;:eq( span:eq(0)''', $'''Own Text''', $'''''', $'''Year'''], [$'''div''', $'''item-id''', $'''''', $'''item-id'''] } ExtractedData=יום<u+2>gt;n:eq DataFromWebPage$'''Own
    DataFro

     nbsp;ro

    nbsp;ro

    While Price and Year are extracted the text option, the one that you need is custom attribute (chosen when you right click on the element). I might be able to make a video if you want, but I don't have time right now.

  • loisharks Profile Picture
    4 on at

    Hi @VJR I appreciate your efforts

    the element id I want to extract is hidden and can be seen just when I inspect the list row 

    can you more clearly how can i add it to the CSS selector

    thanks

  • loisharks Profile Picture
    4 on at

    Hi @Henrik_M 

    thanks for your time and efforts to help me

    it will really help if you provide a short video about how can I applied this code on my webpage extractor 

    thanks again

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 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard