Skip to content

This project reads YouTube live stream messages and stores them in 2 .txt files. One contains all the messages, and the other contains all the messages and the author's names.

License

Notifications You must be signed in to change notification settings

TheTechDivinity/yt-live-chat-to-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Live Chat to Text File by: Divinity

Description and Credits

This project reads YouTube live stream messages and stores them in 2 .txt files. One contains all the messages, and the latter contains all the messages and the author's names. FORMAT: (author): (message) or (message) [Oldest to Latest]

-Credits to: Chat Downloader: https://github.com/xenova/chat-downloader (Library needed for this to work)

Codeium: https://www.codeium.com/ (Codeium made this way easier to code)

How to run:

There's 2 ways to run this script: you can run it through the .bat file, which is more convenient or you can run it through your own Python IDE which is better for when you want to add it to a larger project

Steps. Instructions

.Bat Method:

  1. Replace PATH in run_main.bat with the path to your Python.exe
  2. Open cmd on this folder and run "pip install chat_downloader"
  3. Run run_main.bat

IDE Method:

  1. Load main.py on your Python IDE
  2. Install chat_downloader from Pip
  3. Run it inside the IDE

How to use:

After the script starts running just paste the URL to the livestream and let the program run. It'll automatically download each message into their respective .txt files, updating every few seconds.

All of the outputs from this program are by default stored on the "outputs" folder under the name ++<Random 6 digit number>. However you can change this when running the program alteratively just press enter to use the default names and paths.

To quit the program simply close or terminate it, don't worry as the text file is already saved.


Also, this project is licensed under the MIT license so feel free to use it on an AI chatbot or whatever you want. Anyways thanks for reading. -Divinity

About

This project reads YouTube live stream messages and stores them in 2 .txt files. One contains all the messages, and the other contains all the messages and the author's names.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published