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入门
原文地址:https://www.cnblogs.com/xiaofengfree/p/10291157.html