https://github.com/yassine20011/py-proxy-checker
A simple proxy checker library
https://github.com/yassine20011/py-proxy-checker
proxy proxy-checker proxy-list python python-library
Last synced: 3 months ago
JSON representation
A simple proxy checker library
- Host: GitHub
- URL: https://github.com/yassine20011/py-proxy-checker
- Owner: yassine20011
- License: mit
- Created: 2022-12-30T20:42:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T23:04:29.000Z (almost 2 years ago)
- Last Synced: 2025-09-23T00:51:39.376Z (9 months ago)
- Topics: proxy, proxy-checker, proxy-list, python, python-library
- Language: Python
- Homepage: https://pypi.org/project/py-proxy-checker/#data
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# 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
```bash
pip install py-proxy-checker
```
## Usage
```python
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.