Google spreadsheets = ImportHtml()是在本地还是在Google服务器上完成的? [英] Is Google spreadsheets =ImportHtml() done locally or on a Google server?

查看:90
本文介绍了Google spreadsheets = ImportHtml()是在本地还是在Google服务器上完成的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直接问题:

Immediate problem:

=ImportHtml("http://127.0.0.1/~themis/transactions.html";"table";1)

放入单元格中。页面存在;我可以在Chrome中打开它。
我的猜测是它是远程完成的,因为错误是数据
无法检索。

is placed into a cell. The page exists; I can open it in Chrome. My guess is that it's done remotely as the error is "the data could not be retrieved".

我的原始问题:
我想这是来自google finance的原始页面。但是,
表是由javascript创建的;使用原来的
URL失败,因为该表不存在,并且ImportHtml不执行
javascript。因此,我使用Chrome的开发人员工具打开网页,将根目录
DOM复制为HTML,并将其写入上述transactions.html文件。 Hacky,但
我不需要实时数据。

My original problem: I want this original page from google finance. However, that table is created by javascript; using that original URL fails because the table doesn't exist and ImportHtml doesn't execute javascript. So I open the page with Chrome's developer tools, copy the root DOM as HTML, and write it to the above transactions.html file. Hacky, but I don't need live data.

解决直接或原始问题的任何想法?

Any ideas on a solution to either the immediate or original problem?

推荐答案

没错,所有Google电子表格操作都是远程完成的。

You're correct, all the Google spreadsheet operations are done remotely.

您可以使用 ImportXML电子表格功能使用 GoogleFinance Data API 将您的交易信息一个电子表格。

It does appear that you could use the ImportXML spreadsheet function along with the GoogleFinance Data API to get your transaction information into a spreadsheet.

这篇关于Google spreadsheets = ImportHtml()是在本地还是在Google服务器上完成的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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