2

Immediate problem:

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

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".

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?

Rubén
  • 34,714
  • 9
  • 70
  • 166
themis
  • 1,047
  • 11
  • 16

2 Answers2

0

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

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.

mjhm
  • 16,497
  • 10
  • 44
  • 55
0

Since several years ago, Google Sheets has the GOOGLEFINANCE function, so IMPORTHTML and "hacky" workarounds to import Google Finance data into Google spreadsheet might no longer required.

Regarding IMPORTHTML being done locally or on the server, one part is done on the server, the one that connects to the resource host, the on the client side is done the "recalculation", distributing the data across the cells, etc.

Related

Reference

Rubén
  • 34,714
  • 9
  • 70
  • 166