Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为总Google结果生成Xpath查询_Xpath_Google Sheets - Fatal编程技术网

为总Google结果生成Xpath查询

为总Google结果生成Xpath查询,xpath,google-sheets,Xpath,Google Sheets,我过去在谷歌电子表格中使用过这个公式,将搜索结果的数量输入到一个单元格中。公式不再有效,我知道我需要修复xpath查询 有什么想法吗 当前公式: =importXML("http://www.google.com/search?num=100&q="&A2,"//p[@id='resultStats']/b[3]") 公共测试电子表格: =ImportXML(A2,“/*[@id='resultStats'])” 它不仅生成数字,而且是一个开始Set C2=ImportXML

我过去在谷歌电子表格中使用过这个公式,将搜索结果的数量输入到一个单元格中。公式不再有效,我知道我需要修复xpath查询

有什么想法吗

当前公式:

=importXML("http://www.google.com/search?num=100&q="&A2,"//p[@id='resultStats']/b[3]")
公共测试电子表格:

=ImportXML(A2,“/*[@id='resultStats'])”

它不仅生成数字,而且是一个开始

Set C2
=ImportXML(A2,“/*[@id='resultStats']]”

然后使用
=REGEXREPLACE(C2;“^About(.*)results”;“$1”)

@user619879:您正在寻找从谷歌搜索结果中选择URL或文本的XPath表达式吗?我正在寻找查询“China”时的搜索结果数(例如1200000000)