web scrapping - get prices on Amazon

I want to target the aria-hidden on Amazon, since I found current prices of products may vary each by each and the element with aria-hidden looks like a solution to get what I want.


1 answer

  • answered 2022-01-23 02:33 vinalti

    The html-css selector should be .aprice > span[aria-hidden]

    If this is not enough to select the good price, check the class="..." of the parents elements and add them to the selector. (Selector for class => .xxxx and ID => #xxx) For instance:

    // This is a JQuery selector $("")
    $("#container .aprice > span[aria-hidden]")

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum