From 16be5a95ecf87697a412fbd06104c3bb20b46fe6 Mon Sep 17 00:00:00 2001 From: Joerg Dorgeist Date: Wed, 14 Jan 2026 11:28:48 +0100 Subject: [PATCH] Python example added --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 56bbd8b..9daedb3 100644 --- a/README.md +++ b/README.md @@ -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