Slackdump Setup Get Token and Cookie

Install

mac> brew install slackdump

While in workspace webapp https://<>.slack.com/:

Token

In developer console:

JSON.parse(localStorage.localConfig_v2).teams[document.location.pathname.match(/^\/client\/([A-Z0-9]+)/)[1]].token

img

OPTION I: Getting the cookie value

Switch to Application tab and select Cookies in the left navigation pane.
Find the cookie with the name "d". That's right, just the letter "d".
Double-click the Value of this cookie.
Press Ctrl+C or Cmd+C to copy it's value to clipboard.
Save it for later.

Export token and cookie with the following environment variables:

export SLACK_TOKEN=xoxc...
export COOKIE=xoxd....

Now you can run slackdump in the same terminal where you exported these variables.

Full Reference

Full Reference


Backlinks