摘要:
public static String getHtml(String html){ // 模拟一个浏览器 @SuppressWarnings("resource") WebClient webClient = new WebClient(); //webclient参数载体 WebClientOp 阅读全文
posted @ 2017-06-21 11:16
啄木鸟伍迪
阅读(172)
评论(0)
推荐(0)
摘要:
/* * 爬取网页信息 */ private static String pickData(String url) { CloseableHttpClient httpclient = HttpClients.createDefault(); try { HttpGet httpget = new 阅读全文
posted @ 2017-06-21 11:10
啄木鸟伍迪
阅读(616)
评论(0)
推荐(0)
摘要:
1 public static String sendPost(String url, String param) { 2 PrintWriter out = null; 3 BufferedReader in = null; 4 String result = ""; 5 try { 6 URL 阅读全文
posted @ 2017-06-21 11:08
啄木鸟伍迪
阅读(1408)
评论(0)
推荐(0)
摘要:
该技术只是为了学习,不会用于商业用途。 阅读全文
posted @ 2017-06-21 10:52
啄木鸟伍迪
阅读(13047)
评论(0)
推荐(1)

浙公网安备 33010602011771号