This program logs into a Twitch channel, captures chat into a text file, and converts the most used words into a wordcloud. You can also mask the output with an input image.
Uses word_cloud and matplotlib. See requirements.txt
for full requirements.
Please change configuration options in config.py
. It's recommended that any images you intend to use as a mask be between 500 and 1000px on an edge. Use the SCALE
parameter to adjust this, if needed.
It's recommended - though OPTIONAL - to run all this from a virtual environment. Below are directions for Windows. For other operating systems, you may check out this link: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/
- Download this entire repo or
git clone
it into an empty directory. - Run a command prompt from this folder.
- (OPTIONAL) Set up a virtual environment:
python -m venv venv
- (OPTIONAL) Activate the virtual environment:
.\venv\Scripts\activate
orpython venv\Scripts\activate
- Install packages from requirements:
pip install -r requirements.txt
- Run
main.py
from your IDE, or usepython main.py
from a command line.
Pause and Create Chart - "Shift+Backspace"
You may reconfigure this button in TwitchPlays_TTS_READER.py
.
Includes and modifies elements of https://github.com/DougDougGithub/TwitchPlays
Please see the included LICENSE for details on all other files.
This repository is uploaded mostly for demonstration purposes and personal use, but pull requests and issues are welcome. Please give me some time to respond.