我知道如何使用谷歌电子表格的importhtml
功能,但有一个网页拒绝加载表格。链接如下。
https://www.dream11.com/cricket/fantasy-scorecard/1027/14047
我甚至在谷歌开发者控制台中尝试了以下代码来检查表索引,但这也没有解决var i = 1; [].forEach.call(document.getElementsByTagName("table"), function(x) { console.log(i++, x); });
请帮忙
要测试站点是否能够与IMPORTHTML一起使用,请关闭javascript并加载页面。如果内容不再存在,它实际上不是html的一部分,因此它与IMPORTHTML不兼容。
您的链接就是这种情况 - 抱歉。该表填充在事实之后,因此Sheets无法看到它。
查找该数据的新来源。