[add] Using validated proxies

This commit is contained in:
Pablo Aramburo 2022-09-18 20:47:18 -06:00
parent 7d9efbbe7d
commit 02ef5e8de5

View File

@ -1,5 +1,9 @@
#!/usr/bin/env sh
echo "Fetching fresh proxies"
python3 /app/scrape_proxies.py | tee /mubeng/proxies.txt
/bin/mubeng --check --address 0.0.0.0:8080 --rotate 1 --method random --file /mubeng/proxies.txt --watch --timeout 10s
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