I use jsoup to get a document from a link
Document doc = Jsoup.connect(url).get();
Element price = doc.select("td#flc_close").first();
The result is
<td id="flc_close" nowrap align="right" class="td_buy"><span class="priceup2">7.70</span></td>
How can I get 7.7 above.
Any help is appreciated.
You can use
price.text()and this will select 7.70 in this case. If it is possible that the element contains text outside of the span and you only want to select what is inside the span, then:price.select("span").text()