Price Scrape from an ecommerce website google sheets importxml

Viewed 232

Hi I need to scrape the price from given link but Im getting errors with

xpath=IMPORTXML("https://www.tokopedia.com/jktmusicavenue/kawai-cn39-digital-piano-cn-39-cn-39-elektrik-yamaha-hitam","//*[@id="zeus-root"]/div/div[2]/div[1]/div/div[2]/div[4]/dd/h3")
1 Answers

Try to use this XPath:

"//h3[@data-testid='lblPDPDetailProductPrice']"

P.S. Also note that you're using double quotes pair without escaping inside XPath that already surrounded by double-quotes pair

Related