【发布时间】:2015-08-13 14:56:36
【问题描述】:
我正在努力关注英超梦幻足球网站上的比赛周得分。
我试图从中导入 xml 的网页是 http://fantasy.premierleague.com/entry/79000/event-history/1/
XPATH(在 Chrome 中使用 XPATH HELPER 扩展获取)是
html[@class='js flexbox canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio locals inlinesvg smil svgclippaths']/body/div[@id='body']/div[@class='ismWrapper']/div[@class='ismContent clearfix']/div[@id='ism']/section [@class='ismSecondary']/div[@class='ismMod'][1]/div[@class='ismModBody']/dl[@class='ismDefList ismRHSDefList']/dd[1]
结果应该是 38。我从下面得到一个“导入内部错误”
=IMPORTXML("http://fantasy.premierleague.com/entry/79000/event-history/1/", "//html[@class='js flexbox canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths']/body/div[@id='body']/div[@class='ismWrapper']/div[@class='ismContent clearfix'] /div[@id='ism']/section[@class='ismSecondary']/div[@class='ismMod'][1]/div[@class='ismModBody']/dl[@class=' ismDefList ismRHSDefList']/dd[1]]")
有什么想法吗?
【问题讨论】:
标签: xml xpath import google-sheets