Skip to content

code4policy/slackvisualizer

 
 

Repository files navigation

slackvisualizer

A python script to pull slack participation metrics and visualize them with D3.js

Pulling Slack Data

  1. Be sure to get an api key from Slack and add it to your environment variables under the term SLACKKEY
  2. Install the required libraries with pip install -r requirements.txt
  3. Run the following command to retreive the data from slack (note that you can change the filepath but this will send the data directly to the folder user by the visualization):
# note that .json is appended to the file name automatically
export SLACKKEY="xxx"
python retrieve_slack_messages.py -f chat_visualizer/data/slack_chat_history

Pulling Trello Data

  1. Be sure to get an api key and token from Trello and add them to your environment variables as TRELLOKEY and TRELLOTOKEN respectively
  2. Install the required libraries with pip install -r requirements.txt (if you have not already done so for slack)
  3. Run the following command to retreive the data from trello (note that you can change the filepath but this will send the data directly to the folder user by the visualization):
python retrieve_trello_messages.py -f chat_visualizer/data/trello_action_history.json

Visualizing data

Simply launch the website within the chat_visualizer folder

About

visualize slack participation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.2%
  • CSS 15.1%
  • Python 11.5%
  • Jupyter Notebook 10.9%
  • HTML 8.3%