GitXplorerGitXplorer
a

backup-slack

public
64 stars
30 forks
3 issues

Commits

List of commits on branch master.
Verified
49b195b68594ddec18af3ee0b02ef50dbb9fa8fd

Add notice to the README

aalexwlchan committed 5 years ago
Verified
9cbabf3a8e484a668da6021614e275cb8f06b70b

Merge pull request #1 from yozel/master

aalexwlchan committed 7 years ago
Unverified
3df5caf0ee8f032e8a26e6e0baae5f9ab03324d2

Fix wrong key and parameter name

committed 7 years ago
Verified
f8a4cf73a4935c90511135571a24b7f2134d75d3

Cope with deleted users

aalexwlchan committed 7 years ago
Verified
16f4ae43767dbbd07a1171d160c398d665ef310b

/s/OSError/IOError

aalexwlchan committed 8 years ago
Verified
35b3d7e6747e089140debf180674f3975142886a

One more README tweak

aalexwlchan committed 8 years ago

README

The README file for this repository.

Notice: I'm not currently using or maintaining this code.

It worked when I last tried it in mid-2017, but there may be bugs or Slack API changes that cause issues. I don't have the time or energy to work on this right now – feel free to use the code, but any fixes will have to go in a fork.


slack_history

This is a tool for backing up your message history from Slack.

It uses the Slack API to download the history of your public/private channels and direct message threads, and save them as a JSON file. (The data exports <https://get.slack.help/hc/en-us/articles/204897248>_ provided by Slack only include messages sent in public channels.) If you're using one of the paid tiers, this retrieves your complete history. For the free tiers, only the last 10,000 messages are accessible through the Slack API.

This tool is not created by, affiliated with, or supported by Slack Technologies, Inc.

Installation

To install this script, use pip:

.. code-block:: console

$ pip install -e git+git://github.com/alexwlchan/backup-slack.git#egg=backup_slack

or pipsi <https://github.com/mitsuhiko/pipsi>_:

.. code-block:: console

$ pipsi install -e git+git://github.com/alexwlchan/backup-slack.git#egg=backup_slack

You can use Python 2.7 and Python 3.3+.

Usage

You run the tool on the command-line, passing a Slack API token <https://api.slack.com/web>_ for authentication:

.. code-block:: console

$ backup_slack --token='abcdef'

This saves a series of JSON files to the current directory. To see other options, run with the --help flag:

.. code-block:: console

$ backup_slack --help

License

This project is licensed under the MIT license.