A simple iterator-based approach for visualizing a Slack social network presented by Yoni Lavi at PyCon Ireland 2019.
The tool generates a directed graph of all mentions on a Slack community, with users as nodes and edges for users mentioning one another. The edge widths are weighted by the number of mentions between the two users and the node areas are proportional to the total mentions of that user. In addition nodes are colored with a shade of red corresponding to their pagerank, which provides a more global measure of a user's influence.
- An admin Slack API key (xoxp-*), to be provided via the
SLACK_ADMIN_TOKEN
env variable - The graphviz system package (e.g.
sudo apt install graphviz
) - Some Python requirements -
pip install -r requirements.txt
- Run
./slack_mentions.py
to render your last week's Slack mentions intooutput.svg
in the current directory - View
output.svg
in your browser or favorite image viewer - Gain valuable insights about your community dynamics