0
我使用通过Chrome的Copy XPath创建查询。它工作得很好,但不是这个问题。通过XPath查询报废数据
这里is the site我从中提取数据。
一个查询(表号旁边的“Senaste NAV-航向对接” 1)工程
=IMPORTXML("http://www.di.se/di-fonder/fonddetaljer/?InstrumentId="&1085603;"//*[@id='fund-summary-wrap']/div[1]/dl[2]/dd/text()")
但是,当我从表中复制XPath标题为“AVKASTNING”我得到的数据,请帮助
=IMPORTXML("http://www.di.se/di-fonder/fonddetaljer/?InstrumentId="&1085603;"//*[@id='ctl00_FourColumnWidthContent_ThreeColumnsContent_MainAndSecondColumnContent_fundInfo_fundPerformance_tableFund']/tbody/tr[4]/td[2]/span")
它可以完美兼容一些小的调整,一些基金只有4桌和一些5.通过添加具有表#A柱和InstrumentID它是完美的! –