我正在尝试ImportXML
在 Google 表格上使用从网站导入价格值。找不到正确的 XPATH。请帮忙!
我尝试了这条线和其他各种线,但它们没有用:
=importxml("http://www.bizportal.co.il/mutualfunds/quote/giusimandpedionot/5124573","//div[@class='top-area-cube']//num()")
这是我试图提取的页面的相关来源(我想要 value 117.3
,在该data-row mutual-funds"/"top-area-cube"/"num
部分下)。
<a class="add-to-portfolio " href="javascript:void(0);" onclick="portfolio.addPaper('5124573',this)" data-paper-added="0" data-user-logged="0" data-paper-id="5124573" data-name="quote-paper">
<span class="label">הוסף לתיק אישי</span>
<span class="icon-case2"></span>
</a>
<h1 class="data-row">
<span class="paper-name">תכלית MSCI WORLD TTF</span>
</h1>
<div class="data-row mutual-funds">
<div class="top-area-cube">
<div class="label">מחיר פדיון</div>
<div class="num">117.33</div>
</div>
<div class="top-area-cube">
<div class="label">מחיר קנייה</div>
<div class="num">117.33</div>
</div>
<span class="num percent rise"><span>0.35%</span><span class="icon icon-up"></span></span>
<span class="num percent points-container rise"></span>
</div>
<div class="statistics-container">
<ul class="row data-row statistics">
<li><span class="label">% החודש:</span><span class="num rise">3.69%</span></li>
<li><span class="label">% השנה:</span><span class="num rise">14.33%</span></li>
<li><span class="label">% 3 חודשים:</span><span class="num rise">8.51%</span></li>
<li><span class="label">% 12 חודשים:</span><span class="num rise">6.74%</span></li>
<li><span class="label">סטיית תקן (שנה):</span><span class="num">12.11</span></li>
<li><span class="label">שארפ (שנה):</span><span class="num">0.54</span></li>
</ul>
</div>
预期结果是117.33
返回到 google 表格文件的值(或此特定节点下的任何其他值)。
目前的结果是#N/A