diff --git a/core/proxy_file.py b/core/proxy_file.py new file mode 100644 index 0000000..1cacb8b --- /dev/null +++ b/core/proxy_file.py @@ -0,0 +1,13 @@ +from __future__ import annotations + +from typing import List + + +def load_proxy_file(path: str) -> List[str]: + proxies: List[str] = [] + with open(path, encoding="utf-8") as f: + for line in f: + clean = line.strip() + if clean and not clean.startswith("#"): + proxies.append(clean) + return proxies