简体   繁体   English

ImportXML for Google Result表示:“ Google表格”中的“无法获取URL”

[英]ImportXML for Google Result says: “Could not fetch URL” in Google Sheet

For a school project, I'm trying to get the URL from the first item into a google search in a Google Sheet. 对于学校项目,我正在尝试将第一项中的URL放入Google表格中的google搜索中。

=IMPORTXML("https://www.google.com/search?q=23andMe", "//h3/a/@href")

This Google Search is for the company 23andMe, and the operation should get their URL based on them being the first search result. 此Google搜索适用于23andMe公司,该操作应基于第一个搜索结果获取其URL。 Instead, it throws the error: "Could not fetch URL". 而是,它引发错误:“无法获取URL”。

There are multiple questions on similar topics on StackOverflow, but unfortunately the answers to this error are always a typo or other small mistake, but I have none that I can see. 关于StackOverflow类似主题有多个问题,但是不幸的是,此错误的答案始终是错字或其他小错误,但是我看不到任何错误。

Why am I getting this error, and how can I get the URL for the first Google search result in my spreadsheet? 为什么会出现此错误,如何在电子表格中获取第一个Google搜索结果的URL?

Thanks! 谢谢!

After waiting for several minutes, the program loaded again and no longer threw the error. 等待几分钟后,该程序再次加载,不再抛出错误。 It seems it was just a matter of time, and that this feature is simply buggy. 看来这只是时间问题,而且此功能简直就是越野车。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM