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.3.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

afreeca-0.3.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for afreeca-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0090bee9fdccde56b82a2bf7f9e96f6075686aa6d3b39223307080023cf1ac1a
MD5 2e9ecf79761b89416e484e9455b1c4e1
BLAKE2b-256 4bfec7d67185362e3ab1c4ba0817277e4c7606a2e67746320c455b64f030697e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: afreeca-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2bf3dab4fdfc6cf061b7c1abf4bb588d13735e9c0fb660892620a30cc74b36e
MD5 4fae747f32cac829f6df1e1ded145969
BLAKE2b-256 697cc1cda7f1ad5d22f8f270799b72eb4a5b5bc4c730b33d2fb3cb46995cb600

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