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