Git Product home page Git Product logo

slack-archiver's Introduction

slack-archiver

This is an archiver for your Slack account. The idea is to archive the content of all channels in regular intervals for you to keep a local copy.

It's based on the Python code of the SlackClient provided by Slack from

The script will write a logfile per channel and keeps a statefile of when it fetched the last messages from the channels. So it can pickup on subsequent runs where it has left off last time. This reduces the number of API calls.

A separate file is written which contains all URLs from all channel messages as an aggregated link archive.

Dependencies

Installation

  1. Download the slack-archiver code

     git clone [email protected]:maxheadroom/slack-archiver.git
     cd slack-archiver
    
  2. Install dependencies (virtualenv is recommended.)

     pip install -r requirements.txt
    
  3. Configure slack-archiver (https://api.slack.com/bot-users)

     cp slack.conf.example slack.conf
     vi slack.conf
       SLACK_TOKEN: "xoxb-11111111111-222222222222222"
    
  4. Run the archiver

     python slack-archiver.py
    

Note: At this point slack-archiver is ready to run.

####Todo: Latest version can writes channel timestamps into a file to pick up where it has left of before.

slack-archiver's People

Contributors

koryk avatar maxheadroom avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

koryk amiller27

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.