slack-dump
slack-dump copied to clipboard
Tutorial
How to export ALL THE STUFF (April 25, 2016)
-
Install the Go language using your favorite package manager, then
-
$ mkdir ~/go
-
$ export GOPATH=$HOME/go
-
$ export PATH=${PATH}:${GOPATH}/bin
-
-
Get API key from here: https://api.slack.com/docs/oauth-test-tokens
- Click on the team
- Click Confirm (link ends in
&sudo=1#
haha)
-
Download https://github.com/nlopes/slack/tree/c7719bec2a8daa87329f30fb59b05a652c783f22 (API broken in newer commits)
- Extract to
~/go/src/github.com/nlopes/slack
-
$ go build
-
$ go install
- Extract to
-
Download https://github.com/Takayoshi-Aoyagi/slack-dump (newer than this repo thanks @Takayoshi-Aoyagi)
- Extract to
go/src/github.com/Takayoshi-Aoyagi/slack-dump
-
$ go get
(downloads rest of deps) -
$ go build
-
$ go install
- Extract to
-
Export the stuff
-
$ read -p "token: " input
(paste the token in; keeps it from being stored in history)
-
$ slack-dump -t=${input} myprivatechannel
-
$ unzip slackdump.zip
-
-
Now you will have a bunch of .json files
I get the following error after running:
slack-dump -t=${input}
[little pause - its doing something]
DEPRECATED Action signature. Must be 'cli.ActionFunc'. This is an error in the application. Please contact the distributor of this application if this is not you. See https://github.com/urfave/cli/blob/master/CHANGELOG.md#deprecated-cli-app-action-signature
Any ideas would be appreciated, just not a go guru
@aydancoskun Use my https://github.com/neelb/slack-dump repo. I fixed the issue.
I have done all of this, and I don't get a slack-dump command when done. Can someone help me with what I am doing wrong?
I get this error
./main.go:120: group.Conversation undefined (type slack.Group has no field or method Conversation)
./main.go:131: channel.NumMembers undefined (type slack.Channel has no field or method NumMembers)
./main.go:131: group.NumMembers undefined (type slack.Group has no field or method NumMembers)
./main.go:167: channel.Conversation undefined (type slack.Channel has no field or method Conversation)
./main.go:193: group.Conversation undefined (type slack.Group has no field or method Conversation)
when trying go get
@zwhitchcox you need install only this commit https://github.com/nlopes/slack/tree/c7719bec2a8daa87329f30fb59b05a652c783f22 of github.com/nlopes/slack not newer