import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Test { public static void main(String[] args) { String html = "<html><head><title>First parse</title></head>" + "<body><p>Parsed HTML into a doc.</p></body></html>"; Document doc = Jsoup.parse(html); String title = doc.title(); System.out.println(title); } }
jsoup入门
猜你喜欢
转载自www.cnblogs.com/xiaofengfree/p/10291157.html
今日推荐
周排行