Google 电子表格 - 如何从维基百科导入特定的 table?

Google Spreadsheet - How to import specific table from Wikipedia?

我目前正在使用它从维基百科导入 table:

=IMPORTHTML("https://en.wikipedia.org/wiki/2020%E2%80%9321_Premier_League";"table";6)

它取自该维基百科页面的第 6 table,即英超联赛(足球)的“结果 table”。它很好地将数据导入 21 行 x 21 列矩阵。

但有时,人们会向维基百科页面添加新的 table,从而改变 table 的顺序。目标 table 不再成为“第 6 个 table”。

问题:有没有其他方法可以直接导入“结果table”而不是取table数? (我试着玩弄函数 importxml 但我不知道如何使用 XPath。)

尝试:

=IMPORTXML("https://en.wikipedia.org/wiki/2020%E2%80%9321_Premier_League",
 "//table[@class='wikitable plainrowheaders']/tbody/tr")