提升README.md可读性 (#14)

* 提升README.md可读性

* Update README.md

* update variable name

* update variable name
This commit is contained in:
poorguy 2021-02-05 21:45:01 +08:00 committed by GitHub
parent 13712f89eb
commit e89db0afcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,12 @@
# blivedm
获取bilibili直播弹幕使用websocket协议
python3获取bilibili直播弹幕使用websocket协议
[协议解释](https://blog.csdn.net/xfgryujk/article/details/80306776)(有点过时了,总体是没错的)
基于本库开发的一个应用:[blivechat](https://github.com/xfgryujk/blivechat)
## 使用说明
1. 使用`pip install -r requirements.txt`命令安装依赖,具体有目录下[sample.py](./sample.py)和[blivedm.py](./blivedm.py)用到的相关python依赖
2. 将[sample.py](./sample.py)文件中的room_id替换为直播间ID

View File

@ -32,7 +32,8 @@ class MyBLiveClient(blivedm.BLiveClient):
async def main():
# 参数1是直播间ID
# 如果SSL验证失败就把ssl设为False
client = MyBLiveClient(14917277, ssl=True)
room_id = 14917277
client = MyBLiveClient(room_id, ssl=True)
future = client.start()
try:
# 5秒后停止测试用