- Go here and download a export
- Unzip the folder into the workspace folder
- Workspace/<list of channels++>
- Get the token from one of these links. Populate the auth.yaml.example file:
- Install python3.8
sudo apt install python3
- Install poetry in python3
sudo pip install poetry
- Install python env
poetry install
- Run script
poetry run cleanup
I opted for using PyTest to start off with. In pycharm they are trivial to run, just navigate into the files in the tests folder and right-click
- Fetch channel message history
- https://api.slack.com/methods/search.messages
- For user in users:
- Search from:@user in#channel
- For user in users:
- https://api.slack.com/methods/search.messages
- Find all messages:
- https://api.slack.com/methods/conversations.history
- Find all messages back to timeout
- Iterate over all
- Find all messages back to timeout
- https://api.slack.com/methods/conversations.history
- Fetch channel events
- Is it possible?
- Fetch user activity