开发者

How to use JSOUP in Android?

开发者 https://www.devze.com 2023-02-28 16:35 出处:网络
I want to parse html-page with this code < span clas开发者_Python百科s = bld >1.2456 RON < / span > I want to get text \"1.2456 RON\" with SOUP in Android. What will I have done? Tell me pleaseI

I want to parse html-page with this code < span clas开发者_Python百科s = bld >1.2456 RON < / span > I want to get text "1.2456 RON" with SOUP in Android. What will I have done? Tell me please


I think this is how you do it:

String html  = "< span class = bld >1.2456 RON < / span >";

Elements e = new Jsoup(html).select(".bld");

System.out.println(e.get(0).text().toString());
0

精彩评论

暂无评论...
验证码 换一张
取 消