佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1123|回复: 12

IMPORTXML XPATH error "imported content is empty"?

[复制链接]
发表于 2-7-2020 12:01 PM | 显示全部楼层 |阅读模式
i get#N/A so how to solve it get the balance MYR19,510.46 in google sheet
Capture1.PNG

评分

参与人数 1积分 +20 人气 +10 收起 理由
褐眼睛 + 20 + 10 谢谢分享

查看全部评分

回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 3-7-2020 04:00 PM | 显示全部楼层
本帖最后由 brillian4616 于 7-7-2020 02:47 PM 编辑

各位大大帮帮忙
回复

使用道具 举报

 楼主| 发表于 5-7-2020 10:38 AM | 显示全部楼层
本帖最后由 brillian4616 于 8-7-2020 10:57 AM 编辑

求帮助
回复

使用道具 举报

 楼主| 发表于 9-7-2020 01:20 PM | 显示全部楼层
???????
回复

使用道具 举报

发表于 10-7-2020 03:49 PM | 显示全部楼层
本帖最后由 褐眼睛 于 10-7-2020 04:11 PM 编辑

https://support.google.com/docs/answer/3093339

看来你也可以试一试用IMPORTHTML
  1. =importhtml("https://kiosk.rpro11.com/main.php","table",1)
复制代码


Syntax
IMPORTHTML(url, query, index)

url - The URL of the page to examine, including protocol (e.g. http://).

The value for url must either be enclosed in quotation marks or be a reference to a cell containing the appropriate text.
query - Either "list" or "table" depending on what type of structure contains the desired data.

index - The index, starting at 1, which identifies which table or list as defined in the HTML source should be returned.

回复

使用道具 举报

发表于 10-7-2020 04:12 PM | 显示全部楼层
本帖最后由 褐眼睛 于 10-7-2020 04:18 PM 编辑

你的https://kiosk.rpro11.com/main.php 是需要登录的喔?
我想可能是需要登录,Google Sheets就无法截取main.php的数据。

不妨做个测试,你换去https://kiosk.rpro11.com/login.php ,就会显示:
xml.png

回复

使用道具 举报

Follow Us
发表于 10-7-2020 04:23 PM | 显示全部楼层
本帖最后由 褐眼睛 于 10-7-2020 04:24 PM 编辑

xml2.png

你可能需要放两个 // ,而不是一个 / . 参考图片。

所以是:=importxml("https://kiosk.rpro11.com/main.php","//html//body//table//tr//td[1]")



回复

使用道具 举报

 楼主| 发表于 11-7-2020 01:37 PM | 显示全部楼层
本帖最后由 brillian4616 于 11-7-2020 01:54 PM 编辑
褐眼睛 发表于 10-7-2020 04:23 PM
你可能需要放两个 // ,而不是一个 / . 参考图片。

所以是:=importxml("https://kiosk.rpro11.com/main.php","//html//body//table//tr//td[1]")

谢谢大大您的回复,我尝试了还是一样
new rollex 1.PNG
new rollex2.PNG
回复

使用道具 举报


ADVERTISEMENT

发表于 11-7-2020 02:42 PM 来自手机 | 显示全部楼层
你放URL before Login 是可以的吧? 只是URL after Login 不能够。我相信举凡需要登录的网页都不能用 ImportXml 来获取数据。

Google Sheetshas a built-in function calledImportXMLwhich will import pieces of structured data from a webpage to aGoogle Sheet. You can use this function to import publicly available information (unfortunately you can't use it with websites that you have toauthenticateto or prevent scrapping).
回复

使用道具 举报

 楼主| 发表于 11-7-2020 03:42 PM | 显示全部楼层
褐眼睛 发表于 11-7-2020 02:42 PM
你放URL before Login 是可以的吧? 只是URL after Login 不能够。我相信举凡需要登录的网页都不能用 ImportXml 来获取数据。

Google Sheetshas a built-in function calledImportXMLwhich will import pieces of  ...

感激大大的指导,还有什么办法呢可以import 进google sheet 呢?
回复

使用道具 举报

发表于 11-7-2020 10:23 PM | 显示全部楼层
brillian4616 发表于 11-7-2020 03:42 PM
感激大大的指导,还有什么办法呢可以import 进google sheet 呢?

谢谢你这么看得起我,但是我对网络编程不熟,你可以找这方面的程序员。

我只想到可以用Bot自动登录系统,然后采集数据  "Web Scraping"(我也不是很懂)。
回复

使用道具 举报

 楼主| 发表于 12-7-2020 10:06 AM | 显示全部楼层
thanks
回复

使用道具 举报

发表于 13-7-2020 06:22 PM | 显示全部楼层
Love that he please keep forever
Can't let love fly by
The tearing tear in my eyes hurts me so much.

tetris
skribbl io
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 26-4-2024 06:36 PM , Processed in 0.071243 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表