如何在 Google 表格上插入亚马逊的商品价格?
How can I insert on Google Sheets an item price from Amazon?
我正在尝试从这个 link 中插入:
https://www.amazon.it/dp/B07NDW5NSW/ref=twister_B07P9DXZ1C?_encoding=UTF8&psc=1
智能手机的当前 价格,目前是:
(853).
我试过这个公式:
=importXml("https://www.amazon.it/dp/B07NDW5NSW/ref=twister_B07P9DXZ1C?_encoding=UTF8&psc=1";"//span[@id='priceblock_ourprice']")
但是结果,正如您在照片中看到的,是
#N/A
, the imported content is empty
你有解决这个问题的方法吗?
您尝试的方式不可行。亚马逊实施了反抓取措施,所以唯一的方法是使用他们的 API:
For automated access to price change or offer listing change events
please refer to the MWS Subscription API:
https://developer.amazonservices.it/gp/mws/api.html/277-5993977-7749460?ie=UTF8§ion=subscriptions&group=subscriptions&version=latest
你可以试试这个。
=importxml(hyperlink(concatenate("https://www.amazon.it/dp/B07NDW5NSW")),"//*[@id='priceblock_ourprice']")
我正在尝试从这个 link 中插入:
https://www.amazon.it/dp/B07NDW5NSW/ref=twister_B07P9DXZ1C?_encoding=UTF8&psc=1
智能手机的当前 价格,目前是:
我试过这个公式:
=importXml("https://www.amazon.it/dp/B07NDW5NSW/ref=twister_B07P9DXZ1C?_encoding=UTF8&psc=1";"//span[@id='priceblock_ourprice']")
但是结果,正如您在照片中看到的,是
#N/A
, the imported content is empty
你有解决这个问题的方法吗?
您尝试的方式不可行。亚马逊实施了反抓取措施,所以唯一的方法是使用他们的 API:
For automated access to price change or offer listing change events please refer to the MWS Subscription API: https://developer.amazonservices.it/gp/mws/api.html/277-5993977-7749460?ie=UTF8§ion=subscriptions&group=subscriptions&version=latest
你可以试试这个。
=importxml(hyperlink(concatenate("https://www.amazon.it/dp/B07NDW5NSW")),"//*[@id='priceblock_ourprice']")