Skip to main content

Proxy Checker (Python)

Downloads

A proxy checker in Python using PycURL, a Python interface to libcurl.

Description

The proxy checker takes a proxy as input and uses it to send a request to a proxy judge (a website that outputs the information that was sent to it). If the request succeeds, the proxy checker will use the information it receives from the proxy judge to determine the proxy's:

  • Country
  • Protocol
  • Anonymity
  • Speed

Installation

pip install proxy-checker

Usage

from proxy_checker import ProxyChecker

checker = ProxyChecker()
checker.check_proxy('<ip>:<port>')
{
  "country": "United States",
  "country_code": "US",
  "protocols": ["socks4", "socks5"],
  "anonymity": "Elite",
  "timeout": 1649
}

Parameters

Name Type Default Description
proxy str The proxy to test
check_country bool True If true, the proxy's country will be looked up
check_address bool False If true, the proxy's remote address will looked up
user str None The proxy's username
password str None The proxy's password

Requirements

  • Python 3.*
  • PycURL - A Python interface to libcurl *
* If you have trouble installing PycURL on Windows, try to use Christoph Gohlke's collection of Python Extension Package for Windows.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for proxy-checker 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proxy-checker 0.6
File Size Uploaded
proxy_checker-0.6.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxy-checker 0.6
File Interpreter ABI Platform
proxy_checker-0.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / proxy_checker-0.6.tar.gz

Download URL proxy_checker-0.6.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1ae77b91369cbdad04668dfbe2520b90cb3bb6eeba7658fb922e71a22312a7ca
BLAKE2b-256 checksum
How to use checksums
46eff871758cb9eac1d22c1ff01081646f1c3bdc73cc7e6cfdf8f975a2a5cdc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

Release files / proxy_checker-0.6-py3-none-any.whl

Download URL proxy_checker-0.6-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92778ab81999653cb7b5b4042fa0f6eacfccaafdc0db2aebf6b52d924208a079
BLAKE2b-256 checksum
How to use checksums
79be16652896c68066b78a8a4d262b59a84c1de51a1136c85b21a998d9b22621
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.6 This release

2 release files

0.4

2 release files

0.3

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page