GithubHelp home page GithubHelp logo

rouji / discord_history Goto Github PK

View Code? Open in Web Editor NEW

This project forked from domi-id/discord_history

0.0 3.0 0.0 7 KB

Downloads Discord chat history in a nice text format

License: MIT License

Python 100.00%

discord_history's Introduction

Discord History Downloader

This script downloads Discord chat history and outputs it as JSON. The primary use case is to save history from selected important channels to be able to access and search it locally. Requires Python 3.6+.

Installation

$ pip3 install -r requirements.txt

Usage

$ ./main.py -h
usage: main.py [-h] [-s SERVER] [-c CHANNEL] [-m MAX_MESSAGES_PER_CHANNEL]
               [--debug]
               token

Download discord chat history as (streamed) json

positional arguments:
  token                 Your discord token

optional arguments:
  -h, --help            show this help message and exit
  -s SERVER, --server SERVER
                        Python regex(es) matching server names to be included.
                        If none specified, all servers will be downloaded. PMs
                        are assigned the server name "__private".
  -c CHANNEL, --channel CHANNEL
                        Python regex(es) matching channel names to be
                        included. If none specified, all channels will be
                        downloaded.
  -m MAX_MESSAGES_PER_CHANNEL, --max-messages-per-channel MAX_MESSAGES_PER_CHANNEL
                        Maximum number of messages to get per channel.
  --debug               set logging level to DEBUG

For further filtering, sorting, formatting, etc. use jq and friends.
Note: Messages are not guaranteed to be in chronological (or really any) order.

discord_history's People

Contributors

domi-id avatar rouji avatar

Watchers

 avatar  avatar  avatar

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.