Jsoup 设置代理IP
设置代理IP 设置完成后可发送抓取数据的请求
System.setProperty("http.maxRedirects", "50");
System.getProperties().setProperty("proxySet", "true");
// 如果不设置,只要代理IP和代理端口正确,此项不设置也可以
String ip = "11.184.192.49";
System.getProperties().setProperty("http.proxyHost", ip);
System.getProperties().setProperty("http.proxyPort", "80");
免费的IP: http://www.xici.net.co/

浙公网安备 33010602011771号