Proxy Checker is a python package that allows you to check the validity of a proxy
Project description
py-proxy-checker
This is a simple python script to check if a proxy is working or not and to check the speed of the proxy.
Installation
pip install py-proxy-checker
Usage
from proxychecker import Checker
checker = Checker()
#Check the proxies in the file "proxies.txt"
proxies = checker.check("proxies.txt")
print(proxies)
{
...
2: {
'proxy': '77.109.178.218:80',
'Timeout': 529},
...
}
#Get the information of the proxy
print(checker.info(proxies[2]['proxy']))
{
'ip': '210.245.124.131',
'network': '210.245.112.0/20',
'version': 'IPv4',
...
}
proxy_list = [proxies[proxy]['proxy'] for proxy in proxies]
#Get the information of each proxy in the list
print(checker.info(proxy_list=proxy_list))
[
...,
{
'ip': '210.245.124.131',
'network': '210.245.112.0/20',
'version': 'IPv4',
...
},
...
]
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-proxy-checker-0.2.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for py_proxy_checker-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43287d77e7d90ea902a9b8d9714edd1eddeda967cad94d095e9cf3a8b4d09ad8 |
|
MD5 | 0c8602019eac9cce4ecf5118a65d30d7 |
|
BLAKE2b-256 | 7a07ada31c2e597e6c708c319db155365645f8b7756b7e75b88ba340139e6927 |