Giter Site home page Giter Site logo

mmore / slack-saved-items-export Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 87 KB

Export your Saved Items in Slack to a neat HTML file - for your own reference or as a simple archive. Don't lose your Slack bookmarks anymore.

License: MIT License

Elixir 93.29% HTML 6.71%
slack slack-api slack-app exporter elixir-apps cli archive

slack-saved-items-export's Introduction

Slack Saved Items Export

Elixir CI

Export your saved messages in Slack to a neat HTML file - for your own reference or as a simple archive. Don't lose your Slack bookmarks anymore.

Setup

For running you just need to have Erlang/OTP installed. It does not require Elixir to be installed unless you wanna build it on your own.

Download the slack-saved-items-export binary.

Alternatively build it with

$ mix escript.build

Usage

Create a "Slack App" in your Slack workspace (means basically getting an API token) with the following permissions:

  • channels:history
  • channels:read
  • groups:history
  • groups:read
  • im:history
  • im:read
  • mpim:history
  • mpim:read
  • stars:read
  • users:read

After installation you get a user token which starts usually with xoxp-. Set this token as environment variable and run the program:

export SLACK_SAVED_ITEMS_EXPORT_OAUTH_TOKEN=xoxp-YOUR-TOKEN
./slack-saved-items-export --help
./slack-saved-items-export --output export.html --show-profile-image

Example output

example

Known issues

Currently this program fulfills my personal purpose. Depending on future necessities the following issues might be good to know:

  • API pagination is not taken into consideration
  • no retry in case of ratelimiting
  • unnamed private conversations between multiple users (mpim) are not implemented
  • not all text formatting options are implemented; implementation should be revised

License

Available under the MIT license. See the LICENSE

slack-saved-items-export's People

Contributors

mmore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

slack-saved-items-export's Issues

Trouble running

Anyone able to help point me in the right direction for the script, new to erlang?

Permission denied error

I downloaded the binary, set the token, and attempted to run the program:

➜  Downloads export SLACK_SAVED_ITEMS_EXPORT_OAUTH_TOKEN=xoxd-XXXXX
➜  Downloads ./slack-saved-items-export --output export.html --show-profile-image
zsh: permission denied: ./slack-saved-items-export
➜  Downloads ./slack-saved-items-export --help
zsh: permission denied: ./slack-saved-items-export

But I'm getting a "permission denied" error. (I've removed my user token for privacy but had pasted it correctly.) Any idea what might cause this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.