=IMPORTXML("https://www.amazon.in/Endless-EL-8201-Steel-Bike-Black/dp/B07MFY169J","//span[@class='currencyINR']/text()")
以上公式给出错误:
导入的内容为空。
同时使用URL 1和2。我想要这些产品的进口价格...
答案 0 :(得分:1)
对于第二个URL,这与您尝试的方式不可行。亚马逊实施了防刮擦测量,因此唯一的方法就是使用其API:
用于自动访问价格更改或商品清单更改事件 请参考MWS订阅API: https://developer.amazonservices.com/gp/mws/api.html/277-5993977-7749460?ie=UTF8§ion=subscriptions&group=subscriptions&version=latest
=REGEXREPLACE(REGEXEXTRACT(QUERY(IMPORTXML(
"https://paytmmall.com/led-night-light-wireless-tap-touch-night-lamp-light-battery-powered-wardrobe-kitchen-cabinet-closet-push-stick-on-lamps-HOMLED-NIGHT-LIGLOB317966D12FA2A-pdp",
"//*"), "where Col1 contains'""price"":' limit 1"),
"price"":(.*)""a"), ",$", "")