我尝试使用这个公式
=ImportXML("http://www.google.com/search?q=philadelphia seo company&num=100", "//h3[@class='r']/a/@href")
来自http://www.seerinteractive.com/blog/importxml-cookbook/
我收到公式错误,您需要在使用此公式之前在Google电子表格中启用某些内容吗?
答案 0 :(得分:0)
您需要对搜索查询的部分进行编码,其中“q = philadelphia seo company”表示所有空格都应转换为“%20”。
最终结果应如下所示:
=ImportXML("http://www.google.com/search?q=philadelphia%20seo%20company&num=100", "//h3[@class='r']/a/@href")
另外 - 我一直使用importxml并使用google搜索结果,你也可以使用“// cite”取决于你想要多少网址。