Google地图Xpath使用Google电子表格IMPORTXML [英] Google Maps Xpath using Google Spreadsheet IMPORTXML

查看:144
本文介绍了Google地图Xpath使用Google电子表格IMPORTXML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Google电子表格中使用IMPORTXML函数从谷歌地图结果中使用拉数据,但是我收到错误#N / A

= importxml( http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb ,// DIV [@ class ='name lname'])





= importxml( http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,//SPAN [@ class = 'pp-place-title'])



但没有任何工作..任何想法???

Thanks

解决方案

如果您要给importxml literal str作为参数,它们需要双引号:

= importxml(http://maps.google.com/maps?q =化妆品+外科医生+ NEAR + New + York%2C + NY%2C + United + States& output = classic& dg = ntvb,// div [@ class ='name lname'])


I am trying to use Pull data from google maps results using IMPORTXML function in google spreadsheet but I am getting error #N/A

=importxml(http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,"//div[@class='name lname'])

or

=importxml(http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,//SPAN[@class='pp-place-title'])

but nothing is working.. Any thoughts???

Thanks

解决方案

If you're going to give importxml literal strings as arguments, they need to be double-quoted:

=importxml("http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb", "//div[@class='name lname']")

这篇关于Google地图Xpath使用Google电子表格IMPORTXML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆