top | item 22862741

(no title)

emiunet | 5 years ago

I want to backup chat messages (just the texts) from my Slack workspaces to local machine. However, I don't have admin permissions and I can't install Apps on workspaces to have that API Key. Thus, I wrote this bash script to use my browser's session key and cookie to curl all the messages (all the way back to the beginning of each channels) and dump them to local storage in JSON format. I can later process the JSON files and import them into a database. But that's later.

discuss

order

LinuxBender|5 years ago

This looks like a handy and clever script. Would you consider testing for OS? uname -o. gdate is just Mac ports / brew way of adding GNU date AFAIK. If you see GNU in uname -o, then you should be able to call date vs. gdate and remove a step (alias) for Linux users.