Given a list of proxies test and benchmark them
| config | ||
| proxy_selector | ||
| .gitignore | ||
| Dockerfile | ||
| I | ||
| install.sh | ||
| LICENSE | ||
| Makefile | ||
| MANIFEST.in | ||
| podman_build.sh | ||
| podman_push.sh | ||
| podman_run.sh | ||
| proxy_selector.sh | ||
| publish_python_package.sh | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
| setup.cfg | ||
| setup.py | ||
| wrapper.sh | ||
proxy_selector
Given a list of proxies test and benchmark them. The list of proxies should have the proxies in separate lines just with the IP/hostname and port separated by a colon (:). The result will be stored in the --cache-file (check the help for defaults) in JSON format with the geodata (if available) indicating the country of the Proxy.
Requirements
Check pyproject.toml or requirements.txt:
- setuptools
- click
- click-config-file
- PyYAML
- requests[socks]
- The URL of at least on list of proxies (like those in this repository or this one)
Installation
Linux
To install for example in your ~/.local/bin folder:
./install.sh --destination ~/.local/bin
To install system-wide:
sudo ./install.sh --destination /usr/local/bin
Change your configuration file in "${HOME}/.config/proxy_selector.conf" (see the example in the config folder).
Windows (from PowerShell not tested)
Ensure you have "C:\Users${env:USERNAME}\AppData\Roaming\Python\Python${python_version}\Scripts" in your Path environment variable.
& $(where.exe pip).split()[0] install .
Usage
proxy_selector.sh [--debug-level|-d CRITICAL|ERROR|WARNING|INFO|DEBUG|NOTSET] # Other parameters