Skip to content

Get Slack conversation history with Python and Slack API.

Notifications You must be signed in to change notification settings

Tsukuweb/GetSlackHistory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetSlackHistory

Get Slack conversation data as json files and download files in your workspace with Python and Slack API.

Slack API TOKEN

To use this code, you must prepare your Slack API token which is installed to your workspace.

The token needs these OAuth Scopes:

  • channels:history
  • channels:read
  • emoji:read
  • files:read
  • groups:history
  • im:history
  • mpim:history

config.yaml

Write config.yaml referring to sampleConfig.yaml.

config.yaml needs three informations: workspace, saveDir and TOKEN.

// config.yaml

config:
  workspace: YourWorkspace
  saveDir: save
  TOKEN: Your Slack API token

How to use

  1. Make config.yaml.

  2. If pyyaml isn't in your environment, install with pip install pyyaml.

  3. Run python main.py in terminal.

About

Get Slack conversation history with Python and Slack API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages