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 checkerproxy import CheckerProxy
P = CheckerProxy()
# this will return a dictionary of working proxies with timeout
print(P.check("proxies.txt"))
# this will return a dictionary of the proxy information or a list of dictionaries of the proxy information
print(P.info(ip="178.33.198.181", proxy_list=optional)
Output
{1: {'proxy': '65.2.41.162:80', 'Timeout': 657}, 2: {'proxy': '77.109.178.218:80', 'Timeout': 529}, 3: {'proxy': '34.23.45.223:80', 'Timeout': 1114}, 4: {'proxy': '210.245.124.131:5239', 'Timeout': 906}}
{'ip': '210.245.124.131', 'network': '210.245.112.0/20', 'version': 'IPv4', 'city': 'Ho Chi Minh City', 'region': 'Ho Chi Minh', 'region_code': 'SG', 'country': 'VN', 'country_name': 'Vietnam', 'country_code': 'VN', 'country_code_iso3': 'VNM', 'country_capital': 'Hanoi', 'country_tld': '.vn', 'continent_code': 'AS', 'in_eu': False, 'postal': None, 'latitude': 10.8326, 'longitude': 106.6581, 'timezone': 'Asia/Ho_Chi_Minh', 'utc_offset': '+0700', 'country_calling_code': '+84', 'currency': 'VND', 'currency_name': 'Dong', 'languages': 'vi,en,fr,zh,km', 'country_area': 329560.0, 'country_population': 95540395, 'asn': 'AS18403', 'org': 'FPT Telecom Company'}
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.1.9.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for py_proxy_checker-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 480ba2ac35ef41408a95b81f8062b0cb1c35f4d74803cfda17f5f2f8c205ac83 |
|
MD5 | 856e34661eada8f54d184c7e9b0083fa |
|
BLAKE2b-256 | 947112c68e3474c12c70d02511ee6f3f7531033e1552dd4127025be436ea39b7 |