GithubHelp home page GithubHelp logo

py-proxy-checker's Introduction

Script for proxy checking

The script retrieves the proxy list from the txt file, and checks for the proxy's operability and anonymity.

Using

proxy_list.txt file example:

# you can specify the range of IP addresses
192.168.159.2:9011-192.168.159.4:9011

# you can specify a specific IP address and port
192.168.159.10:9011

# can be specified with or without http: // at the beginning of the line
http://192.168.159.11:9011

127.0.0.1:1111-127.0.0.3:1111

Execution:

if you do not specify a file name on the command line, the script will ask it right after starting

./check_proxy.py proxy_list.txt

Execution result:

http://192.168.159.2:9011 - OK
http://192.168.159.3:9011 - OK
http://192.168.159.4:9011 - OK
http://192.168.159.10:9011 - OK
http://192.168.159.11:9011 - OK
http://127.0.0.1:1111 - Not works
http://127.0.0.2:1111 - Not works
http://127.0.0.3:1111 - Not works

RESULT:
OK proxies: 5
Warning proxies: 0
Bad proxies: 3
  • OK proxies - the number of proxies that have been checked and are anonymous;
  • Warning proxies - the number of proxies that transmit the current IP address in the http header, and are not anonymous;
  • Bad proxies - number of proxies that do not work.

System requirements

  • python 3

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.