A checker designed in Python 3 for checking proxy
Project description
Proxy Checker
A checker designed in Python 3 for checking proxy.
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()
checker.check_proxy('<ip>:<port>')
if proxy is valid, will be return dictionary
{
"status": 1,
"type": ["socks4", "socks5"],
"time_response": "0.545",
"anonymity": "Anonymous",
"country": "Germany",
"city": "Falkenstein",
"country_code": "DE"
}
if proxy is not valid
{
"status": 0
}
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proxy_checking-0.0.tar.gz
(2.8 kB
view hashes)