Added Proxy Providers System
Signed-off-by: hax <hax@lainlounge.xyz>
This commit is contained in:
parent
2dbe1a9c5d
commit
017a010c08
1 changed files with 14 additions and 0 deletions
14
proxy_providers/sandvpn_provider.py
Normal file
14
proxy_providers/sandvpn_provider.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Reference in a new issue