Skip to main content

AfreecaTV API Wrapper

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afreeca-0.4.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

afreeca-0.4.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file afreeca-0.4.1.tar.gz.

File metadata

  • Download URL: afreeca-0.4.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for afreeca-0.4.1.tar.gz
Algorithm Hash digest
SHA256 70685d46eb4161a9ea477a5546c3845b5ab5b53612677821df71db5ac66c531d
MD5 37299b0050f81e42c761ad4649c91724
BLAKE2b-256 560811a7de653c29f333b141a73272149266bdab994b881f481902b19cb107b3

See more details on using hashes here.

File details

Details for the file afreeca-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: afreeca-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for afreeca-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea5fb8fce95e398ed01f16689712218989a0d0a7d92d7641938f549f9b1f195
MD5 b95fb680c8b9e782890b3e46e15058e8
BLAKE2b-256 61bb17ec9b53c127ccd7661d75121b78d03aede11d7876d8c039f13ae326856c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page