如何在 Google 电子表格中使用 ImportXML 返回多列数据?

2024-01-08

我在用着ImportXML在 Google 电子表格中访问user_timelineTwitter API 中的方法 http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline。我想提取created_at and text响应中的字段并创建结果的两列显示。

目前我通过调用 API 两次来做到这一点

=ImportXML("http://twitter.com/status/user_timeline/matthewsim.xml?count=200","/statuses/status/created_at")

在一列顶部的单元格中,并且

=ImportXML("http://twitter.com/status/user_timeline/matthewsim.xml?count=200","/statuses/status/text")

在另一个。

有没有办法让我通过一次调用来创建此显示?


将 =CONTINUE() 的行转换为列的另一种方法是使用 transpose():

=transpose(importxml("http://url","//a | //b | //c"))
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在 Google 电子表格中使用 ImportXML 返回多列数据? 的相关文章

随机推荐