From 017a010c0805ebc51fa2741c015bce3d997c5f27 Mon Sep 17 00:00:00 2001 From: hax Date: Sun, 9 Feb 2025 03:08:24 +0000 Subject: [PATCH] Added Proxy Providers System Signed-off-by: hax --- proxy_providers/sandvpn_provider.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 proxy_providers/sandvpn_provider.py diff --git a/proxy_providers/sandvpn_provider.py b/proxy_providers/sandvpn_provider.py new file mode 100644 index 0000000..947a692 --- /dev/null +++ b/proxy_providers/sandvpn_provider.py @@ -0,0 +1,14 @@ +import requests +from proxy_provider import ProxyProvider + +class SandVPNProvider(ProxyProvider): + """ + Fetch proxies from SandVPN browser extension + """ + PROXIES_LIST_URL = "https://nnp.nnchan.ru/mahoproxy.php?u=https://api.sandvpn.com/fetch-free-proxys" + + def fetch_proxies(self): + """Fetch proxies from SandVPN.""" + response = requests.get(self.PROXIES_LIST_URL, timeout=5) + response.raise_for_status() + return response.json() \ No newline at end of file