How do I get Amazon pricing information in Google Sheets?
In the old version of Google Spreadsheets, this can be done using the following formula:
=value(importXml("http://www.amazon.com/<your url here>", "//b[@class='priceLarge']"))
However, this doesn't work in the newer version of Google Spreadsheets.
How to do it now?
This worked for me:
= ImportXML (hyperlink (concatenation ("AMAZON_URL_HERE")), "// * [@ id = 'priceblock_ourprice']")
You must replace a; to make it work:
=importxml(hyperlink(concatenate("AMAZON_URL_HERE"));"//*[@id='priceblock_ourprice']")
You can also specify an element, for example:
=importXml("AMAZON_URL_HERE";"//span[@id='priceblock_ourprice']")
The syntax is explained here:
http://www.w3schools.com/xpath/xpath_syntax.asp
= importXml ("AMAZON_URL_HERE"; "// span [@id = 'priceblock_ourprice']") doesn't work