Skip to main content

Proxy Checker (Python)

Downloads

A proxy checker in Python using Requests.

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-httpx

Usage

from proxy_checker_httpx import ProxyChecker
import asyncio

async def main():
  checker = ProxyChecker()
  await checker.initialize()
  await checker.check_proxy('<ip>:<port>')
  return

asyncio.run(main())
{
  "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.*
  • Httpx - A httpx python module *

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

Release files for proxy-checker-httpx 0.6.0

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-httpx 0.6.0
File Size Uploaded
proxy_checker_httpx-0.6.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.7 kB

Release files / proxy_checker_httpx-0.6.0.tar.gz

Download URL proxy_checker_httpx-0.6.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5379969bb6655593923de7db43c478b2f46760a67a3059f37ae377d60f3fef57
BLAKE2b-256 checksum
How to use checksums
3b197c70667896efa1db370920ba0f59183c27756fd5ee51cd123ea81377a459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / proxy_checker_httpx-0.6.0-py3-none-any.whl

Download URL proxy_checker_httpx-0.6.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85b4019f026490dd849dbb6fad7cf7cc08f078da053bc415bc55988fb64709d5
BLAKE2b-256 checksum
How to use checksums
724c7ec6ddfaef253a592258cc0ceab26126082d377ebec5654647ea04018fb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.6.0 This release

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