- Insert your API key in
im.py
and change dates you want to get message history within. - You can get API key from Slack website.
- Install Python3 Slacker module.
Usage: python3 im.py [-h] [-g] [-s START_DATE] [-e END_DATE]
Slack direct messages, private groups and general channel export
optional arguments:
-h, --help show this help message and exit
-g, --groups Export private groups (by default only #general and
direct messages exported)
-s START_DATE, --start START_DATE
Start date
-e END_DATE, --end END_DATE
End date
Date format is YYYY.MM.DD
python3 im.py -g --start 2015.04.26 --end 2015.05.13