Giter Site home page Giter Site logo

proxyserver's Introduction

ip代理池

本项目其实就是个简单的代理服务器,经过我小小的修改。加了个代理池进来。 渗透、爬虫的时候很容易就会把自己ip给ban了所以就需要ip代理池了。 ippool

使用

1、启动ip代理池 先把这个项目跑起来 https://github.com/jhao104/proxy_pool

2、启动代理服务器

默认监听8080
java -jar proxyServer.jar

自定义监听端口
java -jar proxyServer.jar 9090

3、设置代理
设置好代理后你就发现每次请求的ip都不一样。

配置

简单说一下proxy_pool需要做的一些配置。
1、如果有更好的代理网站,或者是你买了代理ip。可以在根目录的/fetcher/proxyFetcher.py里面自己写个方法去爬,该方法需要以生成器(yield)形式返回host:ip,然后在根目录 的setting.py文件里面,把自己写方法名添加进去。

2、redis默认装好是没密码的,需要修改setting.py,改为DB_CONN='redis://@127.0.0.1:6379/0'一般全部默认即可

3、修改超时,把setting.py中的VERIFY_TIMEOUT改小点(3)。默认10秒,这种ip基本用不成。

4、已发布版的代理服务器,用的是proxy_pool默认端口。而且代理池需要和代理服务器跑在一起。如不在一台机器上可修改ProxyUtil类里面getProxy方法的url。

最后

博客:http://www.safe6.cn/
公众号:safe6安全的成长日记
整合好的我已经打包放公众号,需要的自取(回复:ip代理池)
safe6

感谢开源项目

https://github.com/casparhuan/proxyServer
https://github.com/jhao104/proxy_pool

proxyserver's People

Contributors

safe6sec avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.