Unofficial wrapper for mildom api.
Project description
これは何?
Python用Mildom APIの非公式ライブラリです。
開発途中です。
バグがあればGithubのissueをお願いします。
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)
# 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)
playback_list = user.fetch_playback()
for playback in playback_list:
# タイトル
print(playback.title)
# 視聴用URL
print(playback.url)
# MP4のURL
print(playback.source_url)
# ゲームの情報
print(playback.game_info)
# > {'game_name': 'マインクラフト(Minecraft)(PC&Console)', 'game_type': 'pc'}
# 配信者(Userオブジェクト)
print(playback.author)
# 配信時刻(datetimeオブジェクト)
print(playback.publish_time)
# アーカイブのID(v_id)
print(playback.v_id)
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.0.1.tar.gz
(3.4 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.0.1.tar.gz.
File metadata
- Download URL: mildom-1.1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa325fe911ae37cfdafca10dd8982ab2c5025e47151193e4cff753cf6bfda62b
|
|
| MD5 |
8c17235775119bd3dec2a77003538c53
|
|
| BLAKE2b-256 |
2c0fe6b9735610f50934bbb5f9e346ef1edf3bed1ca5d48a6901e578ff10b3c5
|
File details
Details for the file mildom-1.1.0.1-py3-none-any.whl.
File metadata
- Download URL: mildom-1.1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96cf4e79f1546068c547cbe6845646591152395cc9ccdf52c8f374eba107000f
|
|
| MD5 |
98eed09df36a08ed80793b66f91f8b5a
|
|
| BLAKE2b-256 |
d2162b773928a1adb18570c9c823d0ef1b604308316b51301e08f29680b5bf91
|