String value = Jsoup.parse(new File(“d:1.html”), “UTF-8”).select(“img”).attr(“src”);
System.out.println(value); //http://socialimg04.rediff.com/image.php?uid=32868898&type=thumb
System.out.println(Jsoup.parse(new File(“d:1.html”), “UTF-8”).select(“span[style$=important;]”).first().text());//android se updates…
- jsoup
- 领先的Java HTML分析器的利弊是什么
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)