rxlama7 / afreeca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Afreeca

AfreecaTV API Wrapper

Install

pip install afreeca

Usage

import asyncio
from afreeca import AfreecaTV, Chat, UserCredential

async def callback(chat: Chat):
    print(f"{chat.nickname}: {chat.message}")

async def main():
    cred = await UserCredential.login("ID", "PW")
    afreeca = AfreecaTV(credential=cred)

    chat = await afreeca.create_chat("BJ")

    chat.add_callback(callback)

    await chat.start()


asyncio.run(main())

Reference

https://github.com/ha1fstack/aftv-ws

About

License:MIT License


Languages

Language:Python 100.0%