Skip to content

proxy ip resource service and proxy pool client

Notifications You must be signed in to change notification settings

mario1oreo/dungproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DungProxy

DungProxy是一个代理IP服务,他包括一个代理IP资源server端和一系列适配中心IP资源得客户端。server负责代理IP资源的收集维护。client则是一系列方便用户使用得API,他屏蔽了代理IP下载、代理IP选取、IP绑定、IP切换等比较复杂逻辑。用户只需要引入client即可方便使用代理IP服务

请注意,在没有遇到封IP的情况下,不要尝试使用本工具。使用代理的效果肯定比不上不使用代理

qq 群,人肉文档支持😁

569543649(暗号:DungProxy)

案例

代理IP爬虫 我们通过代理访问封堵我们的代理资源发布网站,以及访问国外的代理IP网站

##maven坐标

<dependency>
    <groupId>com.virjar</groupId>
    <artifactId>dungproxy-client</artifactId>
    <version>0.0.4</version>
</dependency>

##快速开始

HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
httpClientBuilder.setRetryHandler(new DunProxyHttpRequestRetryHandler(null))
        .setRoutePlanner(new ProxyBindRoutPlanner());
CloseableHttpClient closeableHttpClient = httpClientBuilder.build();

HttpGet httpGet = new HttpGet("http://www.baidu.com");
CloseableHttpResponse response = closeableHttpClient.execute(httpGet);

String string = IOUtils.toString(response.getEntity().getContent());
System.out.println(string);


serverList

115.159.40.202 收集&分发 123.56.155.209 验证 114.215.144.211 地址同步&数据备份&域名下线&域名刷新

贡献者