[quote=引用 1 楼 gukuitian 的回复:] 大概是这样吧 感觉apache的common包比这个好用 HttpHost proxy = new HttpHost("代理ip", 8080, "http"); RequestConfig config = RequestConfig.custom().setProxy(proxy).build(); HttpPost httpPost = new HttpPost("爬的地址"); httpPost.setConfig(config);
HttpHost proxy = new HttpHost("代理ip", 8080, "http"); RequestConfig config = RequestConfig.custom().setProxy(proxy).build(); HttpPost httpPost = new HttpPost("爬的地址"); httpPost.setConfig(config);
大概是这样吧 感觉apache的common包比这个好用 HttpHost proxy = new HttpHost("代理ip", 8080, "http"); RequestConfig config = RequestConfig.custom().setProxy(proxy).build(); HttpPost httpPost = new HttpPost("爬的地址"); httpPost.setConfig(config);
50,684
社区成员
85,678
社区内容
加载中
试试用AI创作助手写篇文章吧