Span data-bind from inside capture the value

#1

Hello,
I want to scrape the value of 649.91 from the code below, but somehow I could not.
You can see other codes in the appendix. Thanks for your help.

I use Xpath:

//*/ div[3]/section[1]/div[4]/div/div[4]/div[1]/div[2]/div/div[1]/div[2]/div[2]/span
but result ""

Code:
http://prntscr.com/pj44yz

ScreenShot
http://prntscr.com/pj44r0

#2

Hi,

The XPath should be:
//div[class='extra-discount-price']/span

If you can link to the actual page it will be easier :slight_smile:

#3

Hi diskborste :slight_smile:

//div[class='extra-discount-price']/span not work.

https://prnt.sc/pj5liu this screenshot home page. Can you see below my link

https://www.hepsiburada.com/jump-13258-halisaha-erkek-futbol-ayakkabi-p-HBV000003SKIC?magaza=Ayakland

Thank you,

#4

Hi diskborste,
Can you hear me :slight_smile:

#5

Try this regex (might be easier to extract the price) instead of looking for the discount which appears to be generated with javascript.

=RegexpFindOnUrl(A1;"product_prices"":\s?\[""([\d\.]+)""\]";1)

#6

Thank you very much diskborste. This path working

1 Like