14 lines
No EOL
470 B
Python
14 lines
No EOL
470 B
Python
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() |