I would like to scrape price in the specific product link, but it turns error when I wrote the formula like this.
Asked
Active
Viewed 52 times
0
-
does [this](https://stackoverflow.com/a/61052087/19846219) solve your problem? – pigrammer Aug 28 '22 at 00:04
1 Answers
0
you forgot to enclose the URL with double quotes. the correct syntax is:
=IMPORTXML("https://www.tokopedia.com/foodrepublic/koepoe-koepoe-natrium-benzoat-33-gr-pengawet-makanan-minuman-halal";
"//*[@id='pdp_comp-product_content']/div/div[2]/div")

player0
- 124,011
- 12
- 67
- 124