Skip to content

About

slack_convosaver is a tool to retrive conversation history including texts and files such as png, webm and store them locally in your computer.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Slack Conversation Saver ConvoSaver

A Python script to archive Slack conversations and download associated files.

Setup

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install required packages:
pip install -r requirements.txt
  1. Create a settings.json file with your Slack credentials:
{
    "SLACK_BOT_TOKEN": "your-slack-bot-token",
    "CHANNEL_ID": "your-channel-id"
}

Usage

Run the script:

python convo_saver.py

The script will:

  • Fetch the 10 most recent messages from the specified Slack channel
  • Save messages to a timestamped JSON file (YYYYMMDDHHMM.json)
  • Download any attached files to a timestamped directory
  • Properly handle binary files and Japanese text

To See the BackUP

Check slack-backup-viewer :: user firendly GUI

https://github.com/devtamtam/slack-backup-viewer.git

image

Note

  • Make sure not to commit your settings.json file as it contains sensitive information.
  • This script is designed for use with public channels and private channels (group chats). It does not support retrieving message history from direct messages (DMs). This is due to privacy limitations enforced by the Slack API, which prevent bots from being added to existing DMs between users

About

slack_convosaver is a tool to retrive conversation history including texts and files such as png, webm and store them locally in your computer.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages