slack-dump icon indicating copy to clipboard operation
slack-dump copied to clipboard

Tutorial

Open oshazard opened this issue 8 years ago • 5 comments

How to export ALL THE STUFF​ (April 25, 2016)

  1. Install the Go language using your favorite package manager, then

    • $ mkdir ~/go
    • $ export GOPATH=$HOME/go
    • $ export PATH=${PATH}:${GOPATH}/bin
  2. 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)
  3. 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
  4. 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
  5. 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
  6. Now you will have a bunch of .json files

oshazard avatar Apr 25 '16 21:04 oshazard

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 avatar Jun 21 '16 21:06 aydancoskun

@aydancoskun Use my https://github.com/neelb/slack-dump repo. I fixed the issue.

neelb avatar Jul 25 '16 05:07 neelb

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?

bhoch avatar Nov 08 '16 15:11 bhoch

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 avatar Dec 27 '16 19:12 zwhitchcox

@zwhitchcox you need install only this commit https://github.com/nlopes/slack/tree/c7719bec2a8daa87329f30fb59b05a652c783f22 of github.com/nlopes/slack not newer

Xo66uT avatar Mar 02 '17 23:03 Xo66uT