| import requests | |
| # Replace with your proxy details | |
| proxy = { | |
| 'http': 'http://your_proxy_ip:proxy_port', | |
| 'https': 'http://your_proxy_ip:proxy_port', | |
| } | |
| # Example request using the proxy | |
| response = requests.get('http://httpbin.org/ip', proxies=proxy) | |
| print(response.json()) |