I hope the last question for today. I use jSoup library

The essence of the question is as follows. How to extract from the total html (a) numbers from a specific tag that are no longer found in the code? please can by example. Honestly flipped through a lot of the answer did not find.

Document doc = Jsoup.connect("http://bcs-express.ru/kotirovki-i-grafiki/gazp").get(); Element title = doc.body(); System.out.println(title); 

How to pull out what is in the tag from this whole page

 <div class="emet_index" data-placeholder="current">138,05</div> 

Specifically interested in these figures.138,05

Help with an example or code. From the documentation I did not understand honestly!

Reported as a duplicate by tutankhamun , zRrr , Community Spirit Dec 3 '15 at 12:13 pm .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • 2
    In vain you opened another question. Better complement the previous one. - tutankhamun

1 answer 1

 String html = "<div class='emet_index' data-placeholder='current'>138,05</div>"; Document doc = Jsoup.parse(html); Element link = doc.select("div").first(); System.out.println(doc.body().text());