查看: 1356|回复: 12
|
IMPORTXML XPATH error "imported content is empty"?
[复制链接]
|
|
i get#N/A so how to solve it get the balance MYR19,510.46 in google sheet
|
评分
-
查看全部评分
|
|
|
|
|
|
|

楼主 |
发表于 3-7-2020 04:00 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 5-7-2020 10:38 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
- =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:23 PM
|
显示全部楼层
本帖最后由 褐眼睛 于 10-7-2020 04:24 PM 编辑
你可能需要放两个 // ,而不是一个 / . 参考图片。
所以是:=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]")
谢谢大大您的回复,我尝试了还是一样 |
|
|
|
|
|
|
|
发表于 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
|
显示全部楼层
谢谢你这么看得起我,但是我对网络编程不熟,你可以找这方面的程序员。
我只想到可以用Bot自动登录系统,然后采集数据 "Web Scraping"(我也不是很懂)。
|
|
|
|
|
|
|
|

楼主 |
发表于 12-7-2020 10:06 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 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 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|