# Keep only proxies from the countries you need, from the CSV export
CSV_URL="https://get.advanced.name/YOUR_LIST_ID.csv"# CSV export from your dashboard
COUNTRIES="DE|FR|NL"# ISO codes to keep# CSV columns: ip;port;country;speed;uptime;real_ip
curl -sf "$CSV_URL" \
| awk -F';' -v c="^($COUNTRIES)$"'toupper($3) ~ c {print $1":"$2}' \
> out.txt
wc -l out.txt
Python
# Keep only proxies from the countries you need, from the CSV exportimport csv
import io
import urllib.request
CSV_URL = "https://get.advanced.name/YOUR_LIST_ID.csv"# CSV export from your dashboard
COUNTRIES = {"DE", "FR", "NL"} # ISO codes to keep# CSV columns: ip ; port ; country ; speed ; uptime ; real_ip
raw = urllib.request.urlopen(CSV_URL, timeout=30).read().decode("utf-8", "replace")
proxies = []
for row in csv.reader(io.StringIO(raw), delimiter=";"):
iflen(row) >= 3and row[1].strip().isdigit() and row[2].strip().upper() in COUNTRIES:
proxies.append(row[0].strip() + ":" + row[1].strip())
withopen("out.txt", "w", encoding="utf-8") as out:
out.writelines(p + "\n"for p in proxies)
print("saved:", len(proxies))
# Keep only proxies that answer faster than LIMIT seconds
LIST_URL="https://get.advanced.name/YOUR_LIST_ID"
LIMIT=2# seconds per check
PARALLEL=50# checks running at once
curl -sf "$LIST_URL" \
| xargs -P "$PARALLEL" -I{} sh -c \
'curl -s -m "$0" -x "http://{}" -o /dev/null https://ifconfig.me/ip && echo "{}"'"$LIMIT" \
> out.txt
wc -l out.txt
Python
# Keep only proxies that answer faster than LIMIT secondsimport time
import urllib.request
from concurrent.futures import ThreadPoolExecutor
LIST_URL = "https://get.advanced.name/YOUR_LIST_ID"
LIMIT = 2.0# seconds per check
WORKERS = 50# checks running at oncedefcheck(proxy):
handler = urllib.request.ProxyHandler({"http": f"http://{proxy}", "https": f"http://{proxy}"})
opener = urllib.request.build_opener(handler)
started = time.monotonic()
try:
opener.open("https://ifconfig.me/ip", timeout=LIMIT).read()
except Exception:
returnNonereturn proxy if time.monotonic() - started <= LIMIT elseNonewith urllib.request.urlopen(LIST_URL, timeout=30) as resp:
proxies = [row for row inmap(str.strip, resp.read().decode().splitlines()) if":"in row]
withThreadPoolExecutor(WORKERS) as pool:
fast = [p for p in pool.map(check, proxies) if p]
withopen("out.txt", "w", encoding="utf-8") as out:
out.writelines(p + "\n"for p in fast)
print("fast proxies:", len(fast), "of", len(proxies))