Skip to main content

Chat Downloader

A simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts. No authentication needed!

Python PyPI version PyPI Downloads GitHub license

Installation

Install using pip

pip install chat-replay-downloader

To update to the latest version, add the --upgrade flag to the above command.

Install using git

git clone https://github.com/xenova/chat-replay-downloader.git
cd chat-replay-downloader
python setup.py install

Usage

Python:

from chat_replay_downloader import ChatDownloader

url = 'https://www.youtube.com/watch?v=5qap5aO4i9A'
chat = ChatDownloader().get_chat(url)       # create a generator
for message in chat:                        # iterate over messages
    print(chat.format(message))             # print the formatted message

For advanced python use-cases and examples, consult the Python Wiki.

Command line:

chat_replay_downloader https://www.youtube.com/watch?v=5qap5aO4i9A

For advanced command line use-cases and examples, consult the Command Line Wiki.

Issues

Found a bug or have a suggestion? File an issue here. To assist the developers in fixing the issue, please follow the issue template (automatically generated when creating a new issue).

Contributing

Become a contributor

Run as a developer

To run the program as a developer, you do not need to build anything separately. Simply execute:

python -m chat_replay_downloader

[work in progress]

Add support for a new site:

  1. Fork this repository.

  2. Clone the source code with:

     git clone git@github.com:YOUR_GITHUB_USERNAME/chat-replay-downloader.git
    
  3. Start a new branch with:

     cd youtube-dl
     git checkout -b site
    
  4. Rest of guide in progress...

Test the program

If you are unable to write code but still wish to assist, we encourage users to run commands with the --testing flag included. This will print debugging messages and pause once something unexpected happens (e.g. when an unknown item is being parsed). If something happens, please raise an issue and we will fix it or add support for it as soon as possible! Note that this will not affect any output you write to files (using --output). For example:

chat_replay_downloader https://www.youtube.com/watch?v=5qap5aO4i9A --testing

Some extractors use undocumented endpoints and may and as a result, users may encounter items which will not be parsed correctly. Increased testing will improve functionality of the software for other users and is greatly appreciated.

Chat Items

Chat items are parsed into JSON objects (a.k.a. dictionaries) and follow this template:

[work in progress]

For a more in-depth output template, consult the Item Wiki.

Supported sites:

  • YouTube.com - Livestreams, past broadcasts and premieres.
  • Twitch.tv - Livestreams, past broadcasts and clips.
  • Facebook.com (currently in development) - Livestreams and past broadcasts.

TODO list:

  • Finalise unit testing
  • Improve documentation
  • Add progress bar when duration is known
  • Add support for streams by username (i.e. currently live)
  • Websites to add:
    • facebook.com (in progress)
    • vimeo.com
    • dlive.tv
    • instagib.tv
    • dailymotion.com
    • reddit live
    • younow.com

======= History

0.0.1 (2020-12-01)

  • First release on PyPI.

Release files for chat-replay-downloader 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chat-replay-downloader 0.0.9
File Size Uploaded
chat_replay_downloader-0.0.9.tar.gz 85.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chat-replay-downloader 0.0.9
File Interpreter ABI Platform
chat_replay_downloader-0.0.9-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 143.7 kB

Release files / chat_replay_downloader-0.0.9.tar.gz

Download URL chat_replay_downloader-0.0.9.tar.gz
Size 85.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad75e523f41b9e1e59bc620212d033c81760bd6bff0273a118fb52f1dd9eefa7
BLAKE2b-256 checksum
How to use checksums
aa2ae7f8e126cd973b475e4d06a3308249d9f426c8f41aaf7902b372798811a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.3

Release files / chat_replay_downloader-0.0.9-py2.py3-none-any.whl

Download URL chat_replay_downloader-0.0.9-py2.py3-none-any.whl
Size 58.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
969a460f6d2a2094442998835fec986388b71dd0ba16e5fbf55d36bc9b394e25
BLAKE2b-256 checksum
How to use checksums
9fdf022ba2b01382660354cce30ba940f74319b87925564eace7ae53fbd3bac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page