AfreecaTV API Wrapper


License
MIT
Install
pip install afreeca==0.4.0

Documentation

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