Install
pip install yvi
Usage
import yvi
info = yvi.get_info(video_id = "xxxxxxxx")
info.get_title()
info.get_channel_id()
Function
get_info(video_id, session)
Parameters
-
video_id : video id
-
session : session object of requests.
Returns
- VideoInfo object.
Attributes of VideoInfo object
get_duration()
- 動画の長さ(秒。アーカイブのみ。ライブ動画または待機画面の場合、0が返ります。)
get_title()
- 動画タイトル
get_title_escaped()
- 動画タイトル(絵文字なし。GUIライブラリ等で絵文字が含まれていてエラーが出る場合はこちらを使用してください)
get_channel_id()
- チャンネルID
get_thumbnail()
- 動画サムネイルURL
get_owner_name()
- 配信者名
get_owner_name_escaped()
- 配信者名(絵文字なし)
get_owner_image()
- 配信者プロフィール画像URL
get_user_name()
- 視聴者名
get_user_name_escaped()
- 視聴者名(絵文字なし)
get_user_image()
- 視聴者プロフィール画像URL
Metadata
Release files for yvi 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yvi-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for yvi-0.0.4-py3-none-any.whl |
Release files / yvi-0.0.4-py3-none-any.whl
| Download URL | yvi-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66f0fde5b10ae1334f1dd8740cb63bb154b79cafbf144b215eeaca4fdc3adfb1
|
|
BLAKE2b-256 checksum How to use checksums |
dc7383dd7e745666ca1f4c26703a98bbc73acc121843a6fd0343fd5a5d948e35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|
Security for yvi 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.