ombe1229 / holodex

Holodex api Python wrapper

Home Page:https://holodex.stoplight.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Holodex api Python wrapper

https://holodex.stoplight.io/

License:Apache License 2.0


Languages

Language:Python 100.0%