For a long time I was using this useful Shorten URL workflow for Alfred, mostly via goo.gl. But then it stopped working (classic Google), so I created my own workflow with TinyURL.

Alfred

I started with writing this Python script, which is just an HTTP request to TinyURL API.

Then I discovered that Alfred doesn't support Python 3 as it only supports what's available out of the box (which is Python 2), so I had to call Python 3 via /bin/bash:

Alfred workflow

…And then I discovered that there is already a workflow for TinyURL, which simply uses cURL. Awkward.