https://github.com/jonghwanhyeon/python-chzzk
An unofficial Python library for CHZZK
https://github.com/jonghwanhyeon/python-chzzk
Last synced: 3 months ago
JSON representation
An unofficial Python library for CHZZK
- Host: GitHub
- URL: https://github.com/jonghwanhyeon/python-chzzk
- Owner: jonghwanhyeon
- License: mit
- Created: 2023-12-20T22:09:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-18T07:34:53.000Z (11 months ago)
- Last Synced: 2025-09-01T07:33:39.804Z (3 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 14
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-chzzk
An unofficial Python library for CHZZK. **Caution**: APIs are currently experimental.
## Requirements
- Python 3.8+
## Installation
```
pip install python-chzzk
```
> [!NOTE]
> 지금 보고 계시는 fork 버전인 `zer0ken/python-chzzk`을 설치하려면 다음 명령어를 실행하세요.
> ```
> pip install -e git+https://github.com/zer0ken/python-chzzk.git@main#egg=python-chzzk
> ```
## Usage
```python
import asyncio
from chzzk import Chzzk, Credential
async def main():
credential = Credential(
auth="Your NID_AUT",
session="Your NID_SES",
)
chzzk = Chzzk(credential)
print(await chzzk.me())
print(await chzzk.channel("bdc57cc4217173f0e89f63fba2f1c6e5"))
print(await chzzk.video(1794))
print(await chzzk.search.channels("풍월량"))
print(await chzzk.search.videos("자낳대"))
print(await chzzk.search.lives("타르코프"))
print(await chzzk.live.status(channel_id="22bd842599735ae19e454983280f611e"))
print(await chzzk.live.detail(channel_id="22bd842599735ae19e454983280f611e"))
if __name__ == "__main__":
asyncio.run(main())
```
## Acknowledgement
- Thanks [kimcore/chzzk](https://github.com/kimcore/chzzk) for sharing API urls and explaining how it works.