Invorthtml用Google表刮擦Wiki表的特定列
我正在尝试使用sheet中的ImporthTML+查询从Wiki表中刮擦一个特定的列(如果存在),但似乎并不总是有效。在某些情况下,当列缺失时,它仍然会返回其他数据(而不是空输出),在其他情况下,它提取了多个列。有人知道这样做的更好的方法吗?谢谢。 请参阅
I'm trying to scrape one specific column from Wiki table (if it exists), using IMPORTHTML+QUERY in sheets, but it doesn't always seem to work. In some cases when the column is missing it still returns data from other ones (instead of empty output), in other cases, it extracts multiple columns. Does anyone know a better way of doing this? Thanks.
See examples
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管我不确定我是否能正确理解您的问题,但是,以下样本公式如何?在此修改中,我使用
importxml
而不是Importhtml
。样品公式:
测试:
当此样品公式用于您提供的样品电子表格时,将获得以下结果。
注意:
参考:
Although I'm not sure whether I could correctly understand your question, for example, how about the following sample formula? In this modification, I used
IMPORTXML
instead ofIMPORTHTML
.Sample formula:
Testing:
When this sample formula is used for your provided sample Spreadsheet, the following result is obtained.
Note:
Reference: