# 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": "bilivedm",
"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/0a/c6/f8fdd9682f3b258da204a70560fef5121d7234b90c13369f258e64ab6dca/bilivedm-1.1.1.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.1",
"project_urls": {
"Homepage": "https://github.com/15906617886/blivedm"
},
"split_keywords": [
"bilibili",
"openclient"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ecf98dae69b25f665e348b81274f8a5a3e64cf9ff9e16b39f416bd0755b2576b",
"md5": "7a6a530b3d7038ea65edcf6aba3b8ede",
"sha256": "a2be16ef984ceda5351786bf5bb6d5551265071d7c9d550513f5fc9d90b4d578"
},
"downloads": -1,
"filename": "bilivedm-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7a6a530b3d7038ea65edcf6aba3b8ede",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 41936,
"upload_time": "2024-03-30T09:58:19",
"upload_time_iso_8601": "2024-03-30T09:58:19.535230Z",
"url": "https://files.pythonhosted.org/packages/ec/f9/8dae69b25f665e348b81274f8a5a3e64cf9ff9e16b39f416bd0755b2576b/bilivedm-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ac6f8fdd9682f3b258da204a70560fef5121d7234b90c13369f258e64ab6dca",
"md5": "7d379548456270b8da675d45e6f3662b",
"sha256": "ca662e1277e0397b745b9ded5cd9c6577eb846c8d0d050a91cc44120aa5c56a7"
},
"downloads": -1,
"filename": "bilivedm-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "7d379548456270b8da675d45e6f3662b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 19930,
"upload_time": "2024-03-30T09:58:22",
"upload_time_iso_8601": "2024-03-30T09:58:22.331724Z",
"url": "https://files.pythonhosted.org/packages/0a/c6/f8fdd9682f3b258da204a70560fef5121d7234b90c13369f258e64ab6dca/bilivedm-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-30 09:58:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "15906617886",
"github_project": "blivedm",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "bilivedm"
}