如何使用Google Spreadsheets中的ImportXML返回多列数据? [英] How do I return multiple columns of data using ImportXML in Google Spreadsheets?
本文介绍了如何使用Google Spreadsheets中的ImportXML返回多列数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Google电子表格中使用ImportXML
访问 user_timeline
方法.我想从响应中提取created_at
和text
字段,并创建一个两列的结果显示.
I'm using ImportXML
in a Google Spreadsheet to access the user_timeline
method in the Twitter API. I'd like to extract the created_at
and text
fields from the response and create a two-column display of the results.
目前,我是通过
=ImportXML("http://twitter.com/status/user_timeline/matthewsim.xml?count=200","/statuses/status/created_at")
位于一列顶部的单元格中,然后
in the cell at the top of one column, and
=ImportXML("http://twitter.com/status/user_timeline/matthewsim.xml?count=200","/statuses/status/text")
在另一个.
我是否可以通过一个电话创建此显示?
Is there a way for me to create this display with a single call?
推荐答案
只需将查询与"|"连接起来
Just concatenate your queries with "|"
=ImportXML("http://twitter.com/status/user_timeline/matthewsim.xml?count=200","/statuses/status/created_at | /statuses/status/text")
这篇关于如何使用Google Spreadsheets中的ImportXML返回多列数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文