Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iydon/bilibili
Bilibili Utilities
https://github.com/iydon/bilibili
Last synced: about 2 months ago
JSON representation
Bilibili Utilities
- Host: GitHub
- URL: https://github.com/iydon/bilibili
- Owner: iydon
- License: mit
- Created: 2020-06-06T19:48:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-10T08:13:15.000Z (over 3 years ago)
- Last Synced: 2024-10-12T21:14:47.590Z (3 months ago)
- Language: Python
- Size: 36.1 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI 版本](https://badge.fury.io/py/bilibili-utils.svg)](https://pypi.org/project/bilibili-utils/)
*Bilibili-utils* 集成了部分的[哔哩哔哩](https://www.bilibili.com/)接口。
# 基本使用
## 安装
使用 `pip` 进行安装:
```shell
pip install bilibili-utils
```## 使用样例
```python
# 数据库模块
from bilibili.database.model import User, Chat, Contribution, SignIn, Popularity, Follower
from bilibili.database.util import add, get
# 用户视频模块
from bilibili.space import User, Video, Dynamic, Comment, FavoriteList
from bilibili.space.utils import send, search
# 直播模块
from bilibili.live import model as blivedm
from bilibili.live.util import send, stream, get
# 其他工具
from bilibili.util.session import session
from bilibili.util.voice import playsound, voice_via_baidu, voice_via_google, music
from bilibili.util.others import av2bv, bv2av
```# 参考
- [blivedm](https://github.com/xfgryujk/blivedm)
- [AV、BV 互相转化](https://www.zhihu.com/question/381784377/answer/1099438784)