Map<String, String> map = new HashMap<String, String>();
map.put("username", "****");
map.put("password", "****");
Response response = Jsoup.connect("请求的链接")
.data(map)
.method(Method.POST)
.timeout(20000)
.execute();
//将response.cookies() 存储下次带上就好
}
jsoup爬取需要登录的网页(个人备份)
最新推荐文章于 2024-06-11 16:40:03 发布