Unofficial wrapper for mildom api.
Project description
これは何?
Python用Mildom APIの非公式ライブラリです。
開発途中です。
バグがあればGithubのissueをお願いします。
This is an unofficial api wrapper for Mildom.
If you find any bugs, please report it on issues by English or Japanese.
対応状況
- ProfileV2 API
- PlayBack API (配信アーカイブ)
対応予定
- async/await(非同期処理)
注意
あくまでも非公式APIの非公式ラッパーです。開発が継続される保証はありません。 開発者は募集中です。
使い方
- ユーザーオブジェクトを作成して詳細を取得
情報を更新する時は、User.updateで情報を更新できます。
Userオブジェクト -ProfileV2 API-
import mildom
user_id = 12345678
# 8桁のIDを指定してユーザーオブジェクトを作成
user = mildom.User(user_id)
Examples:
# bool値でライブ中かどうかを取得
print(user.is_live)
# プロフィールの画像URLを取得
print(user.avatar_url)
# レベルを取得
print(user.level)
- ライブ中かどうかだけを取得
import mildom
user_id = 12345678
if mildom.is_live(user_id):
print('now on live')
PlayBack(アーカイブ)オブジェクト -PlayBack API-
- 複数のアーカイブをリストで取得
import mildom
user_id = 12345678
user = mildom.User(user_id)
# "limit" argument is optional.
playback_list: list = user.fetch_playback(limit=10)
- 特定のアーカイブを取得
import mildom
user_id = 12345678
user = mildom.User(user_id)
playback = user.fetch_playback(index=10)
Examples:
# URLを取得
print(playback.url)
# タイトルを取得
print(playback.title)
# MP4のURLを取得
print(playback.source_url)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mildom-1.1.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mildom-1.1.1.0.tar.gz.
File metadata
- Download URL: mildom-1.1.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70ea1e52ff52d98ac38a4cfd4c62ec00b3de2b0c0526bd48f71dced72765dd53
|
|
| MD5 |
0ca2c9befd48f5ff5671b384fccc6321
|
|
| BLAKE2b-256 |
b7a33884c653e618e2fabc517f84b81ce147f056056e79e66f0e9940744e536a
|
File details
Details for the file mildom-1.1.1.0-py3-none-any.whl.
File metadata
- Download URL: mildom-1.1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45004fbd48eff4ff66d529d2b26cda0596c715aa881dae10d33a7fbef3eb81b4
|
|
| MD5 |
96d7f798fdc5f47bb59f2b7fec3a8af6
|
|
| BLAKE2b-256 |
53a65dba625ac7f988d720e5cb84156591460dfee6a2a946f59924805e464b01
|