Proxy checker in Python
Project description
Proxy Checker (Python)
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
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
Built Distribution
File details
Details for the file proxy_checker-0.6.tar.gz
.
File metadata
- Download URL: proxy_checker-0.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae77b91369cbdad04668dfbe2520b90cb3bb6eeba7658fb922e71a22312a7ca |
|
MD5 | db82d4b3689383f3044e77d1c6d777bc |
|
BLAKE2b-256 | 46eff871758cb9eac1d22c1ff01081646f1c3bdc73cc7e6cfdf8f975a2a5cdc7 |
File details
Details for the file proxy_checker-0.6-py3-none-any.whl
.
File metadata
- Download URL: proxy_checker-0.6-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92778ab81999653cb7b5b4042fa0f6eacfccaafdc0db2aebf6b52d924208a079 |
|
MD5 | 2b88302a96c04b9653dc472f472dac9f |
|
BLAKE2b-256 | 79be16652896c68066b78a8a4d262b59a84c1de51a1136c85b21a998d9b22621 |