Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
/ slack-to-pdf Public archive

create a PDF report of your team interactions. For university teams

License

Notifications You must be signed in to change notification settings

thundergolfer/slack-to-pdf

Repository files navigation

Slack To PDF Report

A Slack To PDF Report tool that allows you to easily view and share a report of your Slack team's interactions (instead of having to dive into hundreds of JSON files). This code is not nice.. at all. I wouldn't recommend reading, but it does the job.


Note: Slack does provide Metrics to even those on their free plan. But these metrics are only things like Overall Channel Activity or Total Messages, and don't cover what is provided here to fulfil my original purposes.


Preview

Overview

slack-to-pdf is best used to report the team interactions on Slack for a University/College assignment. Some group project assignments require you do log and present your communications to assess member contribution.

slack-to-pdf can be used locally on one machine for yourself to explore an export or it can be run on a headless server (as it is a Flask web app) if you also want to serve the content to the rest of your team.

Usage

1) Grab your Slack team's export

2) Run the following command.

The -z flag is to give the .zip file to slack-to-pdf and let it do its magic

python app.py -z /path/to/export/example.zip

If everything went well, your archive will have been extracted, processed, and browser window will have opened showing your #general channel from the export. You can close the local server and navigate to the project's root directory, where you will see a Your_Report.pdf, and you're done!

Installation

Fork or Clone this repo to your computer, create a virtualenv to isolate your setup, and then once your env is activated (for Windows run <env-name>\Scripts\activate>), run pip install -r requirements.txt from project root.

Everything should be ready to go.

Installing wkhtmltopdf

WINDOWS: If you are on Windows then wkhtmltopdf has already been installing in this project's folder and is ready to go. OSX: Download and install the package here and everything should work. UNIX: Please follow the instruction here

Note: I will later work on making this process even easier for all OS Systems.

Acknowledgements

  • Credit to Pieter Levels for his original blog post on a Slack-to-html solution.

  • Credit to Hamza Faran for his work on a Slack-to-HTML solution in python.

License

CC0

To the extent possible under law, Thundergolfer has waived all copyright and related or neighboring rights to this work.