为Google总结果形成Xpath查询 [英] Forming Xpath Query for total Google results
本文介绍了为Google总结果形成Xpath查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我以前在Google Spreadsheets中使用过这个公式,将搜索结果的数量输入到单元格中。该公式不再工作,我知道我需要修复xpath查询。
I've used this formula in Google Spreadsheets in the past to input the number of search results into a cell. The formula's not working anymore and I know I need to fix the xpath query.
有什么想法?
现行公式:
Current formula:
=importXML("http://www.google.com/search?num=100&q="&A2,"//p[@id='resultStats']/b[3]")
公开测试的电子表格:
https://spreadsheets8.google.com/ ccc?key = tJzmFllp7Sk1lt23cXSVXFw& authkey = CM625OUO#gid = 0
推荐答案
= ImportXML(A2,// * [@ id ='resultStats'])
它不会只产生数字,但它是一个开始
It doesn't produce the number only, but it's a start
这篇关于为Google总结果形成Xpath查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文