# blivedm
Python获取bilibili直播弹幕的库,使用WebSocket协议,支持web端和B站直播开放平台两种接口
[协议解释](https://open-live.bilibili.com/document/657d8e34-f926-a133-16c0-300c1afc6e6b)
基于本库开发的一个应用:[blivechat](https://github.com/xfgryujk/blivechat)
## 使用说明
1. 需要Python 3.8及以上版本
2. 安装依赖
```sh
pip install -r requirements.txt
```
3. web端例程在[sample.py](./sample.py),B站直播开放平台例程在[open_live_sample.py](./open_live_sample.py)
Raw data
{
"_id": null,
"home_page": "https://github.com/15906617886/blivedm",
"name": "sumiblivedm",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "bilibili openclient",
"author": "sumi",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4b/04/8369c623835199f83a7ab5844d3933522b0ac0c433fa6cf52fac91b9395d/sumiblivedm-1.1.0.tar.gz",
"platform": null,
"description": "# blivedm\r\n\r\n\r\n\r\nPython\u83b7\u53d6bilibili\u76f4\u64ad\u5f39\u5e55\u7684\u5e93\uff0c\u4f7f\u7528WebSocket\u534f\u8bae\uff0c\u652f\u6301web\u7aef\u548cB\u7ad9\u76f4\u64ad\u5f00\u653e\u5e73\u53f0\u4e24\u79cd\u63a5\u53e3\r\n\r\n\r\n\r\n[\u534f\u8bae\u89e3\u91ca](https://open-live.bilibili.com/document/657d8e34-f926-a133-16c0-300c1afc6e6b)\r\n\r\n\r\n\r\n\u57fa\u4e8e\u672c\u5e93\u5f00\u53d1\u7684\u4e00\u4e2a\u5e94\u7528\uff1a[blivechat](https://github.com/xfgryujk/blivechat)\r\n\r\n\r\n\r\n## \u4f7f\u7528\u8bf4\u660e\r\n\r\n\r\n\r\n1. \u9700\u8981Python 3.8\u53ca\u4ee5\u4e0a\u7248\u672c\r\n\r\n2. \u5b89\u88c5\u4f9d\u8d56\r\n\r\n\r\n\r\n ```sh\r\n\r\n pip install -r requirements.txt\r\n\r\n ```\r\n\r\n\r\n\r\n3. web\u7aef\u4f8b\u7a0b\u5728[sample.py](./sample.py)\uff0cB\u7ad9\u76f4\u64ad\u5f00\u653e\u5e73\u53f0\u4f8b\u7a0b\u5728[open_live_sample.py](./open_live_sample.py)\r\n\r\n",
"bugtrack_url": null,
"license": "Apache2",
"summary": "\u54d4\u54e9\u54d4\u54e9\u7684\u5f00\u653e\u5e73\u53f0\uff08\u76f4\u64ad\uff09\u94fe\u63a5\u6a21\u5757",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/15906617886/blivedm"
},
"split_keywords": [
"bilibili",
"openclient"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "511b3143bba9a1e786b67ed3e7ab0105382d98cc62733f4faa81919ca2eb8af2",
"md5": "4c887804f90a0ad75a2d68a398362014",
"sha256": "ff4c96af712c6cb3dfdedbbaddb25f3607b3b70edfa287a9b7e67989c7bd6641"
},
"downloads": -1,
"filename": "sumiblivedm-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4c887804f90a0ad75a2d68a398362014",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 42003,
"upload_time": "2024-03-25T09:16:37",
"upload_time_iso_8601": "2024-03-25T09:16:37.911804Z",
"url": "https://files.pythonhosted.org/packages/51/1b/3143bba9a1e786b67ed3e7ab0105382d98cc62733f4faa81919ca2eb8af2/sumiblivedm-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4b048369c623835199f83a7ab5844d3933522b0ac0c433fa6cf52fac91b9395d",
"md5": "7390c87cc7415711366d4e72ee3ce26e",
"sha256": "9a12dffe2e8da8e5fc736e1b437285e5c34ce025a4aa9c36f0d7b324170a1f56"
},
"downloads": -1,
"filename": "sumiblivedm-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "7390c87cc7415711366d4e72ee3ce26e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 19895,
"upload_time": "2024-03-25T09:16:39",
"upload_time_iso_8601": "2024-03-25T09:16:39.415101Z",
"url": "https://files.pythonhosted.org/packages/4b/04/8369c623835199f83a7ab5844d3933522b0ac0c433fa6cf52fac91b9395d/sumiblivedm-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-25 09:16:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "15906617886",
"github_project": "blivedm",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "aiohttp",
"specs": [
[
"~=",
"3.9.0"
]
]
},
{
"name": "Brotli",
"specs": [
[
"~=",
"1.1.0"
]
]
},
{
"name": "yarl",
"specs": [
[
"~=",
"1.9.3"
]
]
}
],
"lcname": "sumiblivedm"
}