This Python script crawls and saves live chat messages from finished YouTube livestreams.
This is a fork from kkorona/youtube_chat_crawler, which is itself bundled from a blog post from 雑記帳 (@watagasi).
Requires Python 3.x
Make sure you have all the requirements installed:
pip3 install bs4 lxml requests
Run the command:
./YoutubeChatReplayCrawler.py YOUTUBE_VIDEO_URL
This dumps a json file to the current directory, containing all the stream data.
Run the command:
python3 chatReplayConverter.py
And all the .json files in the current directory will be converted into an easy-to-read text file form.