jsoup 从 URL 中请求并解析 HTML,jsoupurl,Document doc
分享于 点击 24005 次 点评:43
jsoup 从 URL 中请求并解析 HTML,jsoupurl,Document doc
Document doc = Jsoup.connect("<a href="http://example.com">http://example.com") .data("query", "Java") .userAgent("Mozilla") .cookie("auth", "token") .timeout(3000) .post(); //.get();String title = doc.title();//该片段来自于http://byrx.net
用户点评