Giter Club home page Giter Club logo

kick.py's Introduction

Kick.py

Discord Server Invite

Kick.py will be an async api wrapper for kick.com once the api is public, and is documented. Though once its there, I will gladly accept help in making this :D

Documentation

Our docs are being hosted on https://kickpy.cibere.dev

Features

  • Emotes (Global and per streamer)
  • Videos
  • Livestreams
  • Users
  • Chatters
  • Reading Messages
  • Sending Messages
  • Cloudflare Bypass
  • Assets
  • Full Ban Support
  • Leaderboards
  • Regenerate Token on expiration
  • Proxy Support

Installation

! This project is still in early alpha, so it might not work as expected but here is how installation goes.

Install from github requires git to be installed

pip install git+https://github.com/cibere/kick.py

If you are api whitelisted (meaning you are whitelisted from cloudflare), then you can pass whitelisted=True to your Client constructor. Otherwise you should setup the bypass script.

Setting up the bypass script

these steps assume your python executable is python, but that might not be the case

  1. Install golang
  2. Run python -m kick bypass create to create the script. See python -m kick bypass create --help for information about running the command.

    Options include: proxy, port, filepath

  3. To install the dependencies run python -m kick bypass install.
  4. To start the script run go run bypass.go.

If you set a port other than 9090 for the bypass script, make sure to pass bypass_port=THE_PORT into your Client constructor.

Basic Example

import kick
import asyncio

client = kick.Client()

@client.event
async def on_message(message):
    print(f"Received message from {message.author.username}")

@client.event
async def on_ready():
    print("I'm Ready!")

    user = await client.fetch_user("xQc")
    await user.chatroom.connect()


client.run()

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.