Modify README

This commit is contained in:
taizan-hokuto
2020-04-16 23:28:56 +09:00
parent beaecdf43c
commit e7d637ce42

View File

@@ -3,6 +3,7 @@
pip install yvi pip install yvi
``` ```
## Usage ## Usage
```python ```python
import yvi import yvi
@@ -11,18 +12,23 @@ info = yvi.get_info(video_id = "xxxxxxxx")
info.get_title() info.get_title()
info.get_channel_id() info.get_channel_id()
``` ```
## Parameter ## Function
### video_id ### 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() ### get_duration()
動画の長さアーカイブのみ。ライブ動画または待機画面の場合0 - 動画の長さアーカイブのみ。ライブ動画または待機画面の場合0
### get_title() ### get_title()
-   動画タイトル -   動画タイトル