Purpose: dump Slack messages, users and files using browser token and cookie.
Typical use scenarios:
- archive your private conversations from Slack when the administrator does not allow you to install applications OR you don't want to use potentially privacy-violating third-party tools,
- archive channels from Slack when you're on a free "no archive" subscription, so you don't lose valuable knowledge in those channels.
- create a Slack Export archive without admin access.
There a three modes of operation:
- List users/channels
- Dumping messages and threads
- Creating a Slack Export.
Slackdump accepts two types of input:
- the URL/link of the channel or thread, OR
- the ID of the channel.
Users Manual is located in the doc_ directory.
Download:
go get github.com/rusq/slackdump/v2
Use:
import "github.com/rusq/slackdump/v2"
func main() {
sd, err := slackdump.New(os.Getenv("TOKEN"), os.Getenv("COOKIE"))
if err != nil {
// handle
}
// ... read the docs
}
Q: | Do I need to create a Slack application? |
---|---|
A: | No, you don't. You need to grab that token and cookie from the browser Slack session. See Usage_ at the top of the file. |
Q: | I'm getting "invalid_auth" error |
A: | Go get the new Cookie from the browser and Token as well. |
Messages that were conveyed with the donations:
- 25/01/2022: Stay away from TheSignChef.com, ya hear, they don't pay what they owe to their employees.