Skip to content

Instantly share code, notes, and snippets.

@moio
Last active January 28, 2026 08:15
Show Gist options
  • Select an option

  • Save moio/beee2c89bb46629f008ea1dccc0b1447 to your computer and use it in GitHub Desktop.

Select an option

Save moio/beee2c89bb46629f008ea1dccc0b1447 to your computer and use it in GitHub Desktop.
Dump Slack conversations in a txt file

Ever wanted to dump a Slack thread in a text file?

  1. Install slackdump (macOS: brew install slackdump)
  2. Add this to ~/.zshrc/~/.bashrc:
slack2txt() { URL="$1"; NAME=$(echo "$URL" | awk -F'/' '{print $(NF-1) "_" $NF}'); slackdump archive -o "${NAME}_dump" "$URL" && slackdump format -o "${NAME}_text" text "${NAME}_dump" && rm "${NAME}_text/users.txt" && cat "${NAME}_text"/*.txt > "${NAME}.txt" && rm -rf "${NAME}_dump" "${NAME}_text" && echo "Saved to ${NAME}.txt"; }
  1. Copy a Slack link (right-click -> 🔗 Copy Link)
  2. Have fun:
slack2txt https://your.slack.com/archives/FULL/url/here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment