Code Monkey home page Code Monkey logo

twitchclouds's Introduction

TwitchClouds

Instrument for creating Twitch word clouds:

  • Active chatters
  • Most used words in messages

Features

  • Working with Helix API with twitch python library
  • BTTV, FFZ, Twitch emoji support for exculding from wordclouds
  • Working with images with PIL

Installing (Python 3.8+ on Ubuntu/Windows)

Download package and install requirements

git clone https://github.com/Roqvie/TwitchClouds.git
cd TwitchClouds
python -m venv venv
venv/bin/activate   # or venv/Scripts/activate for Windows
pip install -r requirements.txt

Testing

  1. Set major .env variables for testing
  2. Test:
venv/bin/activate   # or venv/Scripts/activate for Windows
python -m pytest

Example

Example with main.py

  1. Retrieve Client-Id and Client-Secret from Twitch Apps
    1. Write Client-Id in .env file as APP_CLIENT_ID
    2. Write Client-Secret in .env file as APP_CLIENT_SECRET
  2. Retrieve user Access-Token from Twitchtokengenerator
    1. Write ACCESS TOKEN in .env file as USER_ACCESS_TOKEN
    2. Write CLIENT ID in .env file as USER_CLIENT_ID
  3. Select your broadcaster
    1. Write his username in .env file as BROADCASTER
  4. Write your filenames in .env file as BASE_FILE (with .extension) and OUTPUT_FILE (without .extension)
  5. Run script:
python main.py

Example Output:

Generated with main.py

JesusAVGN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.