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 details)

Uploaded Source

File details

Details for the file proxy_checking-0.0.tar.gz.

File metadata

  • Download URL: proxy_checking-0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8

File hashes

Hashes for proxy_checking-0.0.tar.gz
Algorithm Hash digest
SHA256 6b2237bdacf1996937837f4aa97223395d2525ee0d6f7dedbc3b7511634d0840
MD5 aac8fd145a39c014dfe0aa67473712e9
BLAKE2b-256 98899899c3e97cd0f452015db989e68cf16475679e705ef528c525324ccae7ad

See more details on using hashes here.

Supported by

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