Skip to main content

Holodex api wrapper

Project description

holodex

PyPI version PyPI downloads CodeFactor Github release

Holodex api wrapper

Example

import asyncio
from holodex.client import HolodexClient


async def main():
    async with HolodexClient() as client:
        search = await client.autocomplete("iofi")
        channel_id = search.contents[0].value
        print(channel_id)

        channel = await client.channel(channel_id)
        print(channel.name)
        print(channel.subscriber_count)

        videos = await client.videos_from_channel(channel_id, "videos")
        print(videos.contents[0].title)

        channels = await client.channels(limit=100)

        print(channels[0].name)
        print(channels[0].subscriber_count)


asyncio.run(main())


"""
UCAoy6rzhSf4ydcYjJw3WoVg
Airani Iofifteen Channel hololive-ID
508000
Freetalk dan Terima Kasih Superchat! + Risu OG Song React?!
Nanashi Mumei Ch. hololive-EN
528000
"""

Installation

python -m pip install holodex

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

holodex-0.11.11.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

holodex-0.11.11-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file holodex-0.11.11.tar.gz.

File metadata

  • Download URL: holodex-0.11.11.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for holodex-0.11.11.tar.gz
Algorithm Hash digest
SHA256 b82259dbaddd49889a2cea6e515f9eaf60ba53a54813f98aec3ae2cae553eeae
MD5 ac5236ddab4e9a05c5ea6b6a3154d6a6
BLAKE2b-256 0dd26aed78f0548ec92a48323cb87e134e891dab4549b4e060b53930fde17c0b

See more details on using hashes here.

File details

Details for the file holodex-0.11.11-py3-none-any.whl.

File metadata

  • Download URL: holodex-0.11.11-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for holodex-0.11.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6efc91cabcb72f4bd7fb3d9cddafe46d4889db266ca2abc1f8dd5c8d07a3953b
MD5 db462b2c0e576253d8296dcfe20ba168
BLAKE2b-256 834c55949db938690a1fab00f608a63da71f4ea08023eb842a555a04806a0d1d

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