proxy_scraper/entrypoint.sh

10 lines
346 B
Bash
Executable File

#!/usr/bin/env sh
echo "Fetching fresh proxies"
python3 /app/scrape_proxies.py | tee /mubeng/proxies.txt
echo "Validating proxies"
/bin/mubeng --check --file /mubeng/proxies.txt --timeout 5s --output /mubeng/live_proxies.txt
/bin/mubeng --address 0.0.0.0:8080 --rotate 1 --method random --file /mubeng/live_proxies.txt --watch --timeout 10s