Add setup.py

This commit is contained in:
taizan-hokuto
2020-04-16 23:18:58 +09:00
parent 99423ddcd0
commit 1100346971
10 changed files with 182 additions and 32 deletions

55
README.md Normal file
View File

@@ -0,0 +1,55 @@
## Install
```bash
pip install yvi
```
## Usage
```python
import yvi
info = yvi.get_info(video_id = "xxxxxxxx")
info.get_title()
info.get_channel_id()
```
## Parameter
### video_id
- video id
### session
- session object of requests.
## Funtions
### 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