Git Product home page Git Product logo

pyproxyhunter's Introduction

pyproxyhunter (python proxyhunter)

Python proxy hunter is a tool that will help you to get quickly a number of free and fast proxy servers. It hunt proxy servers via google search, so you will have fresh results every time you use this software. You can save fast and free proxy servers sorted by country to the text file, or import this module to your python program.

##Usage:

Install requirements

pip install -r requirements.txt I hope soon you'll need just to pip install pyproxyhunter

From CLI to easily hunt proxies and save them to output.txt file:

user@localhost:~/pyproxyhunter$ python pyproxyhunter.py
Proxy servers would be saved to /home/user/pyproxyhunter/output.txt.
12046 proxy to check with 500 threads. Please wait.
Time: 0:01:02 Progress: 100%                                                                                                                                    
284 proxies are good.
284 fresh proxies saved to /home/user/pyproxyhunter/output.txt
user@localhost:~/pyproxyhunter$ head output.txt 
193.194.69.36:3128
200.70.56.204:3128
190.228.33.114:8080
89.249.207.65:3128
203.37.37.143:80
195.34.146.175:80
103.13.133.202:8080
103.13.133.198:8080
189.113.135.230:8080
177.44.136.226:3128
user@localhost:~/pyproxyhunter$ wc -l output.txt
284 output.txt

Importing module to your own project:

from pyproxyhunter import ProxyHunter

hunter = ProxyHunter(pages=2, timeout=3, threads=150, get_country_info=True)

proxy_servers = hunter.hunt()

russian_proxies = [proxy.server for proxy in proxy_servers if proxy.country == 'Russia']

print russian_proxies

You'll get the following output:

13396 proxy to check with 150 threads. Please wait.
Time: 0:04:33 Progress: 100%                                                                                                                                    
428 proxies are good.
[u'85.143.24.70:80', u'82.200.81.233:80', u'78.36.152.6:8080', u'85.143.24.70:80', u'185.12.94.236:4444', 
u'77.73.236.18:3128', u'84.242.242.182:8080', u'193.238.50.62:8080', u'46.8.49.26:10000', u'77.73.110.222:3128', 
u'80.253.28.174:8080', u'83.239.227.245:8080', u'46.21.68.1:8080', u'80.240.104.241:8000', u'83.69.209.146:8080', 
u'185.12.94.236:4444', u'5.53.16.183:8080', u'217.21.220.156:8080', u'77.233.11.50:80', u'85.143.24.70:80', 
u'178.49.228.101:3128']

In case of any questions you can contact me via [email protected]

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.