如何从彭博进口价格?

问题描述 投票:0回答:1

从此网站

https://www.bloomberg.com/profile/company/AAGB:MK

我想提取股票AAGB:MK的值。

在我的Google表格中,这是我的公式。

=IMPORTXML("https://www.bloomberg.com/profile/company/AAGB:MK","//a[@span class='priceText__0feeaba3']")

无法提取。

有人可以帮我吗?

regex xpath google-sheets array-formulas google-sheets-importxml
1个回答
0
投票

尝试一下:

=REGEXEXTRACT(INDEX(IMPORTDATA(
 "https://www.bloomberg.com/profile/company/AAGB:MK"), 100, 1), 
 "price%22%3A(.*)%2C%22priceChange")

0

© www.soinside.com 2019 - 2024. All rights reserved.