I have to write a python script which collects some data with Elasticsearch and then write the data to a database. I am struggling collecting the data with elasticsearch, because the company i work is behind a proxy.

The script works without a proxy.. but i dont know how to pass down the proxy settings to Elasticsearch.