Skip to main content

The Wayslack Machine: incrementally archive Slack messages and files using Slack's team export format

Project description

The Wayslack Machine

The Wayslack Machine: incrementally archive Slack messages and files using Slack’s team export format.

Getting Started

  1. Install wayslack:

    $ pip install wayslack
  2. (optional) Export your team history and unzip it: https://get.slack.help/hc/en-us/articles/201658943-Export-your-team-s-Slack-history

  3. Get a legacy token from: https://api.slack.com/custom-integrations/legacy-tokens

  4. Run wayslack path/to/export/directory to create an archive if one doesn’t already exist, then download all messages and files:

    $ wayslack my-export/
    API token for my-export/ (see https://api.slack.com/custom-integrations/legacy-tokens): xoxp-1234-abcd
    Processing: my-export/
    Downloading https://.../image.jpg
    #general: 10 new messages in #general (saving to my-export/_channel-C049V24HY/2016-12-19.json)
    $ ls my-export/_files/
    ...
    https%3A%2F%2F...%2Fimage.jpg
  5. Optionally, create a configuration file so multiple teams can be archived easily:

    $ cat ~/.wayslack/config.yaml
    - dir: first-team/      # relative to the config file
      token: xoxp-1234-abcd # from https://api.slack.com/custom-integrations/legacy-tokens
    - dir: second-team/
      token: xoxp-9876-wxyz
    
    $ wayslack
    Processing: first-team
    ...
    Processing: second-team
    ...

IMMATURITY WARNING

WARNING: wayslack is still somewhat immature and not completely tested. Right now it will archive:

  • Public messages

  • Private groups

  • Private messages

  • All uploaded files

  • All link previews

  • List of channels

  • List of users

But it will likely be very slow for larger (100+ user or channel) teams, doesn’t have any configuration options, and likely has bugs which will only be found with time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wayslack-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

wayslack-0.1.3-py2-none-any.whl (17.4 kB view details)

Uploaded Python 2

File details

Details for the file wayslack-0.1.3.tar.gz.

File metadata

  • Download URL: wayslack-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wayslack-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7b3e0a75d48a077c133ee4a84c723f0121d57754e0e10ed7346a4ac0f863cac0
MD5 6f91eebecd3b0bd87ba4d851b272e2ab
BLAKE2b-256 d7bce1fdd52d36accbd35a6f495bda8d750725b9040c89e59c940c1f135e8cf7

See more details on using hashes here.

File details

Details for the file wayslack-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for wayslack-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 3ae1093526e8a15fec58e215f72243f07101cae1bde8c0dedb2d2fdea604340f
MD5 81bc49a81249dede2ecf1243b2323edf
BLAKE2b-256 377d43da3e7a1ce3b68414210bad11151b175157736b6bd2161f0f59c90875d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page