优秀文章:https://blog.csdn.net/wisdom_maxl/article/details/65631825
jsoup使用cookie:
Set<Cookie> cookie_set = LoadCSDN.load();
// WebClient wc = new WebClient();HashMap<String, String> map = new HashMap<String,String>();for (Cookie cookie : cookie_set) {map.put(cookie.getName(), cookie.getValue());
// wc.getCookieManager().addCookie(cookie);}Document doc = Jsoup.connect(url).cookies(map).get();