Skip to content

endingwithali/twitch-chat-to-kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Twitch Messages -> Apache Kafka Service

This service receives all messages for a specific Twitch channel, and sends them to an Apache Kafka instance. This project was done in sponsorship with Aiven.

You will need to generate a "oauth token" via this service.

ENV Variables

You will need a .env file with the following values defined.

TWITCH_NICKNAME=[nickname for this project]
TWITCH_CHANNEL=#[channel you are looking to read chat messages from]
TWITCH_OAUTH=[oauth token generated by https://twitchapps.com/tmi/]
AIVEN_HOST=[host uri defined by Aiven dashboard]
AIVEN_PORT=[port as defined by Aiven dashboard]

You will also need the ca.pem, service.cert, and service.key files in the main directory, as defined by the Aiven service.

To Run

This project uses Python3.

You will need to source the venv to use this project to get started.

$ python -m venv venv && source venv/bin/activate
$ pip install -r requirements.txt

To run the kafka service:

$ python main.py

Resources

Websites I used to learn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages