A script which exports the history (including replies) of all the public and private channels a bot is in.
- Create a bot in your Slack workspace (with all the bot scope permissions)
- Add the bot to any private channel you want to export (public channels will be joined automatically)
- Run
pip install pipenv
- Run
pipenv install
- Run
SLACK_TOKEN=yourbottoken pipenv run python slack_export.py