Skip to main content

Proxy checker in Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxy_checker-0.6.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

proxy_checker-0.6-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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