I'm trying to run the following curl command(making a REST API request to a Spark UI) via python requests 2.7:
curl --socks5-hostname 127.0.0.1:1080 http://website-url:18080/api/v1/applications/
I've tried by the method explained here but it didnt work for me. The curl command on the other hand did.
proxies = {
'http': 'socks5://127.0.0.1:1080',
}
response = requests.get(url, proxies=proxies)