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

Uploaded Source

Built Distribution

afreeca-0.2.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for afreeca-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c19ceb822038fc0f27edb22659745dc18759625ffe5b528508eff8042a307ea3
MD5 ee044c284f80916fba0a2851824314cf
BLAKE2b-256 6f15214391413fb4eda1905a435c8aecc5f2878c11c2ce390f925b39d9a7b40b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: afreeca-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce86a1f37d303bfda783021c905aa08b59ce2122d34dccf70c5d1196011fd62a
MD5 892563b6531673340fe177393a1a0323
BLAKE2b-256 9cbc1e0ab1b8a74696684382685ed79c4703619b4db5baf111193ce09d193819

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