From e7d637ce423c98bdb65288b43c45321e676e3200 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Thu, 16 Apr 2020 23:28:56 +0900 Subject: [PATCH] Modify README --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 19dd23c..aab5189 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ pip install yvi ``` + ## Usage ```python import yvi @@ -11,18 +12,23 @@ info = yvi.get_info(video_id = "xxxxxxxx") info.get_title() info.get_channel_id() ``` -## Parameter -### video_id +## Function +### get_info(video_id, session) -- video id +Returns +------- ++ VideoInfo object. -### session +Parameters +---------- +- video_id : video id -- session object of requests. +- session : session object of requests. -## Funtions + +## Attributes of VideoInfo object ### get_duration() -動画の長さ(アーカイブのみ。ライブ動画または待機画面の場合0) +- 動画の長さ(アーカイブのみ。ライブ動画または待機画面の場合0) ### get_title() -   動画タイトル