Python example added

This commit is contained in:
Joerg Dorgeist
2026-01-14 11:28:48 +01:00
parent 99abe31306
commit 16be5a95ec

View File

@@ -32,6 +32,23 @@ my $sock = IO::Socket::SOCKS->new(
);
```
### python
```bash
pip install requests[socks]
```
```python
import requests
proxies = {
'http': 'socks5://127.0.0.1:1080',
'https': 'socks5://127.0.0.1:1080'
}
response = requests.get('https://httpbin.org/ip', proxies=proxies)
print(response.json())
```
### nodejs
```bash
npm install socks-proxy-agent