What is available:

try { Document doc = Jsoup.connect("https://www.yandex.ru/").get(); Element kursUSD = doc.select(".inline-stocks__value_inner").first(); System.out.println("Курс доллара на текущий момент - " + kursUSD); 

The console displays this to me:
<span class="inline-stocks__value_inner">64,33</span>

How to make it so that he would just show me the text, without any tags?

    1 answer 1

    You output the entire element, with all its attributes and content. To get only the text contained in the tag, call the method:

     kusrUSD.text(); 
    • So simple, damn it) I knew about this text, but forgot to add it. - Nojdon