Copy the contents of a Slack thread.
Great conversations happen in Slack. But once the conversation is over, how do you use what you've learned? You could rely on your memory, so your precious insights are as easy to find as your car keys. Or you could extract the content and store it in your favourite knowledge-management system, like Notion, Confluence, Obsidian or JIRA.
Unfortunately, when it comes to sharing data, Slack is pretty stubborn. Simply highlighting the text of a thread and copying it results in mostly garbage. If all your Slack administrators are similarly motivated, they might have installed third-party apps that tie into a corporate workflow.
So what if you just want the text of a Slack thread your way? You need slackclipper
.
slackclipper
uses your personal Slack account to copy the text you want in the format you prefer. Want to add a discussion to a JIRA issue? Store some golden knowledge in Obsidian? Reference some colleagues in your Notion? slackclipper
enables it all. Simply provide it the thread you want to clip and it will return the content, formatted ready for its new life.
By default the clipped content will be neatly formatted in Markdown. But the data is yours! Customise the format, or even export to any format with an API. Prefer PDF, or Google Docs or even dictated audio? Go for it!
This project is not endorsed or authorised in any way by Slack Technologies LLC.
pip install slackclipper
This will install the slackclipper
library for advanced use within Python, but also installs a convenience executable by the same name, so you can run it directly from the command line.
- Copy the link to the thread in Slack.
- Run
slackclipper
in your Terminal. - Paste the result into the destination of your choice.
When slackclipper
is run for the first time, it will attempt to extract your Slack credentials using slacktokens
. You may be prompted for your password.
If extraction is successful, these credentials will be stored (in ~/.config/slackclipper/
) for future use. To replace the store with freshly extracted credentials, run slackclipper
with the -u
or -update-credentials
flag.
slackclipper
relies onslacktokens
to extract your Slack credentials.slacktokens
currently only supports macOS and Linux.-
If credentials extraction fails for this or any other reason, credentials can be provided manually using Python like so:
>>> from slackclipper import update_credentials_store >>> update_credentials_store(creds) # where "creds" is in the format produced by slacktokens
-
- Message authors are given as a user ID. This is easy to improve by doing a user lookup to turn them into a useful name.
- Timestamps are not yet included in the output. Just need to come up with a suitable format.
- Some things aren't formatted well. For example:
- links are oddly formatted;
- mentions and emoticons aren’t;
- and multimedia won’t come through well.
- Only exports in MarkDown format for now.