Android 在div中解析span

Android 在div中解析span,android,jsoup,Android,Jsoup,嗨,我是JSOUP的新手,我需要检索一个跨度值。 这是我的html源代码: <div class=" exactCenterlabel" style="font-size: xx-large"> <span id="labelfriends" style="display:inline-block;border-style:Outset;font-family:Guttman Yad-Brush;font-size:50pt;font-weight:bold;font-s

嗨,我是JSOUP的新手,我需要检索一个跨度值。 这是我的html源代码:

  <div class=" exactCenterlabel" style="font-size: xx-large">
 <span id="labelfriends" style="display:inline-block;border-style:Outset;font-family:Guttman Yad-Brush;font-size:50pt;font-weight:bold;font-style:italic;height:115px;width:868px;margin-bottom: 0px">!תכיר מי הם החברים שלך </span> 
</div>
我尝试过这个字符串value=doc.selectspanlabelfriends.text

但它无法找回我想要的东西。你能帮忙吗?

使用这个编辑好的 用作url,而不是因为它从帧内部调用

public static void main(String[] args) throws IOException {
    Document doc = Jsoup.connect("http://109.67.102.212:90/").timeout(10000)
                .userAgent("Mozilla/5.0")
                .get();
    System.out.println(doc.select("div.exactCenterlabel").select("span#labelfriends").text());
 }

检查我的答案,如果它不工作,然后发布完整的html源这是我的测试网站我不能发布完整的html源!!发布完整的html源代码,并尝试使用System.out.printlndoc.html打印值;并检查id=labelfriends的span标记是否在class=exactCenterlabel的div标记中包含在输出中它不在输出中