Skip to content

Beach-Walk/twitch-chat-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch Chat Logger

Twitch Chat Logger. Monitors Twitch chat using Selenium & BeautifulSoup and logs all chat messages to a SQLite database file. Written in Python3.

Limitations

  • Only press ctrl+c ONCE to exit. Pressing it multiple times could leave the browser driver to run in the background even though the CLI is closed.
  • Currently only works with popout chats
  • Only tested on Windows. May need modification for other OSs.

Requirements

  • Chrome Browser
  • Chrome Driver
  • Python 3 & pip (or some variant)
  • Dependencies in requirements.txt

How It Works

  • Monitors chat messages, logs into sql database
  • Messages stored in array will save to database at around 700~ messages to reduce ram usage.

To Build & Run (assuming you have py3)

  1. Download ZIP or clone repository

  2. Install dependencies

    • pip install -r requirements.txt
  3. Download chrome driver

    • https://chromedriver.chromium.org/
    • Be sure your downloaded driver is the same version as the regular chrome browser you have installed. you can check chrome version by going to help>about chrome
    • Unzip and place .exe in the folder: drivers/chrome/
  4. Open CMD in program directory and run:

    • python run.py

To Do

  • Clean up code / user input
  • Executable?
  • Add more driver support

About

Python + SQLite twitch chat logger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages