导入HTML无法在moneycontrol.com上运行

时间:2019-01-31 10:51:27

标签: google-sheets

=IMPORTHTML(" http://www.moneycontrol.com/stocks/fno/marketstats/futures/gainers/homebody.php?opttopic=&optinst=allfut&sel_mth=1&sort_order=0 ", "TABLE", 2)

我尝试同时使用IMPORTHTMLIMPORTXML,但是它们似乎不起作用。任何建议将不胜感激!

这是在运行两个查询时出现的错误消息:

错误导入的内容为空。

1 个答案:

答案 0 :(得分:0)

不确定要导入的内容是什么,但是LIST的范围是1到29

=IMPORTHTML("http://www.moneycontrol.com/stocks/fno/marketstats/futures/gainers/homebody.php?opttopic=&optinst=allfut&sel_mth=1&sort_order=0";
 "LIST"; 29)

,您也可以使用“全部导入”:

=IMPORTXML("http://www.moneycontrol.com/stocks/fno/marketstats/futures/gainers/homebody.php?opttopic=&optinst=allfut&sel_mth=1&sort_order=0"; 
 "//*")