You cannot use IMPORTHTML
on the page because this page is loaded dynamically via JavaScript (see related question).
What you can do, though, is use the API call it does (example) and get the data that way. I’m not sure if this is allowed intentionally or not, and you should check with the owners of the page.
You can add a function that does that in Google Apps Script:
function IMPORTJSON(url, columns) {
if (!Array.isArray(columns)) return []
columns = columns.flat()
const response = UrlFetchApp.fetch(url)
return JSON.parse(response.getContentText()).data.map(
obj => columns.map(key => obj[key])
)
}
And to use it:
=IMPORTJSON("http://example.com/xxx", {"propertyCol1", "propertyCol2", "etc"})
Notice that this example ignores pagination and uses the data only from the first page.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…