Chat logs on an unpaid Slack
December 27, 2018 9:46 AM Subscribe
I'd like to (consensually and benevolently) keep logs of a private Slack channel, on an unpaid Slack, where I'm not an admin. I understand I'm not supposed to, but, uh, how can I?
Things I already know:
Things I already know:
- Keeping chat logs is socially and ethically complicated. I get it. Please assume I'm doing it in good faith, with the consent of all involved, for tediously benevolent reasons.
- Slack's business model means they don't want anyone to keep logs on an unpaid slack. I get it. I know we could have a really fun conversation about when precisely small ToS violations are ethical, and whether I've met those criteria, but that's not what I'm asking.
- This would be easier if I got a paid plan. Oh boy do I get it. This is on a social Slack with thousands of members, making a paid plan impossible; and previous attempts to migrate the channel off this Slack have failed. Please assume I've tried my best and it's not going to happen.
Also, this pile of python on github claims to archive past slack history.
posted by pharm at 11:47 AM on December 27, 2018
posted by pharm at 11:47 AM on December 27, 2018
This slack history python script has worked well for me. I run it every two weeks or so, and it exports as json. I assume that I could go through and clean up the resulting files (including deduping overlapping entries between runs) and then make some kind of pretty searchable archive. I've just never bothered.
I run it with a little shell script like:
The comments on that gist also seem to indicate that there are perhaps other, newer versions of that script floating around. Might be worth your while to investigate those!
posted by chrisamiller at 8:56 PM on December 27, 2018
I run it with a little shell script like:
thedate=`date +%F | sed 's/-/./g'`; mkdir $thedate; cd $thedate; python ../slack_history.py --token YOURTOKENHEREI also modified the script to add a "time.sleep(30)" on line 107, which seems to be necessary to prevent the script from being blocked for exceeding some kind of rate limit.
The comments on that gist also seem to indicate that there are perhaps other, newer versions of that script floating around. Might be worth your while to investigate those!
posted by chrisamiller at 8:56 PM on December 27, 2018
This thread is closed to new comments.
posted by shanek at 10:15 AM on December 27, 2018 [1 favorite]