Advertisements

Python SlackClient with Proxy Server Support

Tech on the Brain

While writing my first Slack bot using some of the tutorials found here, I ran into a big problem. My bot will live in a locked-down environment where the only outbound access is through a proxy server.

I had to do quite a bit of searching through the source code, because, for whatever reason, I could not find how to use a proxy server with the slackclient python library in the documentation or in any simple google searches. So, I am writing this entry in hopes to save someone else the headache of having to track down the nuances of proxy usage in the urllib3 and the websocket libraries. Read more

Advertisements