Skip to main content

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

MIT

Project details


Release history Release notifications | RSS feed

This version

0.0

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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page