/slaxtract

Extract Emails and More from Slack

Primary LanguageRubyMIT LicenseMIT

slaxtract

Easily extract usernames, first/last names, and email addresses from Slack

Instructions:

  1. Get a Slack web API token from their web API page.
  2. Set your environment variable slack_api_token to the above. Running export slack_api_token=YOURTOKENHERE is sufficient.
  • N.B.: the API token you use here will determine what Slack organization you'll be downloading from.
  1. Run gem install slack-api.
  2. Run chmod +x slaxtract.rb to make it exectuable.
  3. Run slaxtract with ./slaxtract.rb.

This will produce dump.csv, suitable to import into your email service of choice. See example.csv for a quick look at what data will be available.

Remember, it is against Slack's API TOS (and probably that of your email service) to extract email addresses without the consent of the users.