[英]Java Jsoup: How should I extract the following data point from this html?
我正在嘗試從以下內容中提取最新信息:
以下是我正在查看的html代碼,但是我不知道如何使用Jsoup解決此問題? 問題是html中有許多類稱為“ UL1”,多個“ Last”和許多“ td”。 在這種情況下,我需要獲取當前價格為“ 31.4”。
<td rowspan="2" class="bg1 W1">
<ul class="UL1"><li class="LI1 font12_grey W1">Last</li></ul>
<ul class="UL1"><li class="LI2 font28 C bold W1"><span class="neg bold">31.400</span></li></ul>
<ul class="UL1 none" style="display:none;"><li class="LI1 C W1">
<img src="/en/Images/Stock/icon_see.gif" border=0 /><a id="ctl00_ctl00_cphContent_cphContent_lnkAddMonitor" class="font12a" href="#">Monitor</a><img src="/en/Images/Stock/icon_group.gif" border=0 /><a id="ctl00_ctl00_cphContent_cphContent_lnkAddPortfolio" class="font12a" href="#">Portfolio</a>
</li></ul>
</td>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.