在Google表格中使用importhtml

问题描述 投票:1回答:1

抱歉,我不确定如何在标题中描述问题。

我想获得http://app2.nea.gov.sg/anti-pollution-radiation-protection/air-pollution/psi/pollutant-concentrations链接数据

有3个链接,上午8点阅读,下午12点阅读,下午4点阅读。我想要的是“下午4点阅读”。但是当页面打开时,它默认为上午8点。所以当我在下面使用importhtml时,我只能得到早上8点的数据。谁知道如何获取“下午4点阅读”的数据?

=importhtml("http://app2.nea.gov.sg/anti-pollution-radiation-protection/air-pollution/psi/pollutant-concentrations";"table";2)
google-sheets formulas
1个回答
1
投票
=transpose(query(transpose(importhtml("http://app2.nea.gov.sg/anti-pollution-radiation-protection/air-pollution/psi/pollutant-concentrations";"table";2));"select Col7,Col8,Col9,Col10,Col11,Col12 where Col7='*4PM*' or Col7='*Time*'";0))
© www.soinside.com 2019 - 2024. All rights reserved.