Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 从Google应用程序脚本中的URL抓取表_Google Apps Script - Fatal编程技术网

Google apps script 从Google应用程序脚本中的URL抓取表

Google apps script 从Google应用程序脚本中的URL抓取表,google-apps-script,Google Apps Script,在第6行中,如何确定应从URL中捕获多少getElement(“div”)和getElements(“div”)[number] 这就是我想要捕获表格的地方。您可能需要研究使用,这是一种专门用于从网页中提取表格数据的工具,它有一个。您可能需要研究使用,这是一种专门用于从网页中提取表格数据的工具,另一个例子是将表格拉到表格中,然后从表格中访问数据。例如: =importhtml("http://www.tradingeconomics.com/zambia/rating","table",1)

在第6行中,如何确定应从URL中捕获多少
getElement(“div”)
getElements(“div”)[number]


这就是我想要捕获表格的地方。

您可能需要研究使用,这是一种专门用于从网页中提取表格数据的工具,它有一个。

您可能需要研究使用,这是一种专门用于从网页中提取表格数据的工具,另一个例子是将表格拉到表格中,然后从表格中访问数据。例如:

=importhtml("http://www.tradingeconomics.com/zambia/rating","table",1)

这会将特定网页上的第一个表格拉入工作表。

另一个示例可能是将表格拉入工作表,然后从工作表中访问数据。例如:

=importhtml("http://www.tradingeconomics.com/zambia/rating","table",1)
这会将特定网页上的第一个表拉入工作表