Skip to content

lbn/slack-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-exporter

Export data from Slack as a non-admin user. This script uses Slack's API to export history from each channel chunk by chunk.

Note that the format of channel logs is JSON, not NDJSON. We should probably make it possible to output NDJSON using a command line option. There are many things that would be nice to have so feel free to contribute and submit pull requests.

Usage

Generate a test Slack API token here and put it in a file called ./env like this:

export SLACK_TOKEN=xoxp-123456...

Then every time you start your shell just cd into this directory, do source ./env and run the exporter with your desired options.

./slack-exporter --min-members 17 --date-start 2016-06-01

Find more options in ./slack-exporter -h.

Development setup

pyenv virtualenv 3.5.0 slack-exporter
pyenv local slack-exporter

About

Export data from Slack as a non-admin user

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages