slack-exporter - slack html/json exporter
Slack conversations exporter html/json
Python 3.x
SLACK_USER_TOKEN
https://api.slack.com/apps
in the browser.Create New App
button on the page that opens after logging in.From scratch
option in the popup that appears.Create App
button.Basic information
tab, click on the Permissions
tab under Add features and functionality
.Scopes
section.Add an OAuth Scope
button under User Token Scopes
.channels:history,channels:read,groups:history,groups:read,identify
im:history,im:read,mpim:history,mpim:read,usergroups:read,users.profile:read
users:read,users:read.email
install to workspace
button under OAuth Tokens for Your Workspace
becomes active.ps : If you have a large conversations, use --export-type=multiple_html
Single html expor
python exporter.py --export-type=single_html --directory=/tmp/
Json export
python exporter.py <slack-token> --export-type=json --directory=/tmp/
Json export with channel type
python exporter.py --export-type=json --channel-type=public_channel --directory=/tmp/
Multiple html export with channel type
python exporter.py --export-type=multiple_html --channel-type=public_channel --directory=/tmp/
Parameter required/optinal description
--channel-type optional im|mpim|public_channel|private_channel. default "all"
--directory optional default "current" directory
--log-level optional INFO|DEBUG|WARNING, default "INFO"
--export-type optional json|single_html|multiple_html, default "json"