Skip to content

iterweb/proxy_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Checker

Downloads
A checker designed in Python 3.7 for checking proxy.
If you need proxies, you can use this script Proxy Grabber

Description

This script takes a proxy as string input and tries to get data such as:

  • type (HTTP, SOCKS4, SOCKS5)
  • time response (in seconds)
  • anonymity (Anonymous or Transparent)
  • country
  • city
  • country code

Installation

pip install proxy-checking

Usage

from proxy_checking import ProxyChecker

checker = ProxyChecker()
r = checker.check_proxy('<ip>:<port>')
print(r)

if proxy is valid, will be return dictionary

{
  "status": True,
  "type": ["socks4", "socks5"],
  "time_response": "0.545",
  "anonymity": "Anonymous",
  "country": "Germany",
  "city": "Falkenstein",
  "country_code": "DE"
}

if proxy is not valid

{
  "status": False
}

License

MIT

Releases

No releases published

Packages

No packages published

Languages