我有一个代码尝试删除个人资料拥有的Instagram关注者的数量:
=importxml("https://www.instagram.com/zara/", "//script[@type='application/ld+json']")
公式的输出为:
{"@context":"http:\/\/schema.org","@type":"Store","name":"ZARA
Official","alternateName":"@zara","description":"ZARA Official Instagram
account","url":"https:\/\/go.zara\/srpls-ig","mainEntityofPage":{"@type":"ProfilePage","@id":"https:\/\/www.instagram.com\/zara\/","interactionStatistic":{"@type":"InteractionCounter","interactionType":"http:\/\/schema.org\/FollowAction","userInteractionCount":"36672820"}},"image":"https:\/\/www.instagram.com\/static\/images\/ico\/favicon-200.png\/ab6eff595bb1.png"}
上面以“ userInteractionCount”开头的部分为我提供了所需的答案,在上述情况下为36672820。
如何修改代码以给我这个答案?另外,如果我应该完全不同地/从头开始编写IMPORTXML代码,那也值得欢迎。