starbot-bilibili


Namestarbot-bilibili JSON
Version 2.0.10 PyPI version JSON
download
home_pagehttps://github.com/Starlwr/StarBot
Summary一款极速,多功能的哔哩哔哩推送机器人
upload_time2024-06-30 08:00:05
maintainerNone
docs_urlNone
authorLWR
requires_python>=3.8
licenseGNU Affero General Public License v3.0
keywords starbot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

![logo](https://bot.starlwr.com/images/static/logo.jpg)

[![PyPI](https://img.shields.io/pypi/v/starbot-bilibili)](https://pypi.org/project/starbot-bilibili)
[![Python](https://img.shields.io/badge/python-3.10%20|%203.11-blue)](https://www.python.org)
[![License](https://img.shields.io/github/license/Starlwr/StarBot)](https://github.com/Starlwr/StarBot/blob/master/LICENSE)
[![STARS](https://img.shields.io/github/stars/Starlwr/StarBot?color=yellow&label=Stars)](https://github.com/Starlwr/StarBot/stargazers)


**一个极速,多功能的哔哩哔哩推送机器人**
</div>

## 特性

* 极速的直播推送,通过连接直播间实现
* 接近于手机端效果的绘图式动态推送
* 详细的直播数据统计
* 群内数据查询、榜单查询

## 快速开始

项目依赖于 Redis 进行持久化的直播相关数据存储,依赖于 Mirai 和 mirai-http 进行消息推送

### 安装

```shell
pip install starbot-bilibili
```

### 启动

推送配置的 JSON 文件可使用官网的 [在线制作工具](https://bot.starlwr.com/depoly/json) 生成  
详细文档及 config 中所需的 credential 获取方式请参见 [部署文档](https://bot.starlwr.com/depoly/document)

```python
from starbot.core.bot import StarBot
from starbot.core.datasource import JsonDataSource
from starbot.utils import config

config.set_credential(sessdata="B站账号的sessdata", bili_jct="B站账号的bili_jct", buvid3="B站账号的buvid3")

datasource = JsonDataSource("推送配置.json")
bot = StarBot(datasource)
bot.run()
```

## 鸣谢

* [bilibili-api](https://github.com/MoyuScript/bilibili-api): 哔哩哔哩的 API 调用模块
* [bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect): 哔哩哔哩 API 收集整理
* [mirai](https://github.com/mamoe/mirai): 高效率 QQ 机器人支持库
* [Ariadne](https://github.com/GraiaProject/Ariadne): 一个优雅且完备的 Python QQ 自动化框架,基于 Mirai API HTTP v2
* [Fake-QQ-Chat-Window](https://github.com/Redlnn/Fake-QQ-Chat-Window): 伪 QQ 移动客户端聊天窗口,当前官网的推送配置在线预览基于此项目魔改实现
* [为本项目赞赏支持的小伙伴们](https://bot.starlwr.com/about): 名单较长,详细名单可点击链接在官网查看
* [JetBrains](https://www.jetbrains.com/?from=StarBot): 为开源项目免费提供的优秀 IDE

[<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg"/>](https://www.jetbrains.com/?from=StarBot)

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=Starlwr/StarBot&type=Date)](https://star-history.com/#Starlwr/StarBot&Date)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Starlwr/StarBot",
    "name": "starbot-bilibili",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "starbot",
    "author": "LWR",
    "author_email": "lwr1104@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/6a/2e/ed2dc4f58e8eb89b1b91b83113c8ea78d729a4a8a22c733aa6a68a282342/starbot-bilibili-2.0.10.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\r\n\r\n![logo](https://bot.starlwr.com/images/static/logo.jpg)\r\n\r\n[![PyPI](https://img.shields.io/pypi/v/starbot-bilibili)](https://pypi.org/project/starbot-bilibili)\r\n[![Python](https://img.shields.io/badge/python-3.10%20|%203.11-blue)](https://www.python.org)\r\n[![License](https://img.shields.io/github/license/Starlwr/StarBot)](https://github.com/Starlwr/StarBot/blob/master/LICENSE)\r\n[![STARS](https://img.shields.io/github/stars/Starlwr/StarBot?color=yellow&label=Stars)](https://github.com/Starlwr/StarBot/stargazers)\r\n\r\n\r\n**\u4e00\u4e2a\u6781\u901f\uff0c\u591a\u529f\u80fd\u7684\u54d4\u54e9\u54d4\u54e9\u63a8\u9001\u673a\u5668\u4eba**\r\n</div>\r\n\r\n## \u7279\u6027\r\n\r\n* \u6781\u901f\u7684\u76f4\u64ad\u63a8\u9001\uff0c\u901a\u8fc7\u8fde\u63a5\u76f4\u64ad\u95f4\u5b9e\u73b0\r\n* \u63a5\u8fd1\u4e8e\u624b\u673a\u7aef\u6548\u679c\u7684\u7ed8\u56fe\u5f0f\u52a8\u6001\u63a8\u9001\r\n* \u8be6\u7ec6\u7684\u76f4\u64ad\u6570\u636e\u7edf\u8ba1\r\n* \u7fa4\u5185\u6570\u636e\u67e5\u8be2\u3001\u699c\u5355\u67e5\u8be2\r\n\r\n## \u5feb\u901f\u5f00\u59cb\r\n\r\n\u9879\u76ee\u4f9d\u8d56\u4e8e Redis \u8fdb\u884c\u6301\u4e45\u5316\u7684\u76f4\u64ad\u76f8\u5173\u6570\u636e\u5b58\u50a8\uff0c\u4f9d\u8d56\u4e8e Mirai \u548c mirai-http \u8fdb\u884c\u6d88\u606f\u63a8\u9001\r\n\r\n### \u5b89\u88c5\r\n\r\n```shell\r\npip install starbot-bilibili\r\n```\r\n\r\n### \u542f\u52a8\r\n\r\n\u63a8\u9001\u914d\u7f6e\u7684 JSON \u6587\u4ef6\u53ef\u4f7f\u7528\u5b98\u7f51\u7684 [\u5728\u7ebf\u5236\u4f5c\u5de5\u5177](https://bot.starlwr.com/depoly/json) \u751f\u6210  \r\n\u8be6\u7ec6\u6587\u6863\u53ca config \u4e2d\u6240\u9700\u7684 credential \u83b7\u53d6\u65b9\u5f0f\u8bf7\u53c2\u89c1 [\u90e8\u7f72\u6587\u6863](https://bot.starlwr.com/depoly/document)\r\n\r\n```python\r\nfrom starbot.core.bot import StarBot\r\nfrom starbot.core.datasource import JsonDataSource\r\nfrom starbot.utils import config\r\n\r\nconfig.set_credential(sessdata=\"B\u7ad9\u8d26\u53f7\u7684sessdata\", bili_jct=\"B\u7ad9\u8d26\u53f7\u7684bili_jct\", buvid3=\"B\u7ad9\u8d26\u53f7\u7684buvid3\")\r\n\r\ndatasource = JsonDataSource(\"\u63a8\u9001\u914d\u7f6e.json\")\r\nbot = StarBot(datasource)\r\nbot.run()\r\n```\r\n\r\n## \u9e23\u8c22\r\n\r\n* [bilibili-api](https://github.com/MoyuScript/bilibili-api): \u54d4\u54e9\u54d4\u54e9\u7684 API \u8c03\u7528\u6a21\u5757\r\n* [bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect): \u54d4\u54e9\u54d4\u54e9 API \u6536\u96c6\u6574\u7406\r\n* [mirai](https://github.com/mamoe/mirai): \u9ad8\u6548\u7387 QQ \u673a\u5668\u4eba\u652f\u6301\u5e93\r\n* [Ariadne](https://github.com/GraiaProject/Ariadne): \u4e00\u4e2a\u4f18\u96c5\u4e14\u5b8c\u5907\u7684 Python QQ \u81ea\u52a8\u5316\u6846\u67b6\uff0c\u57fa\u4e8e Mirai API HTTP v2\r\n* [Fake-QQ-Chat-Window](https://github.com/Redlnn/Fake-QQ-Chat-Window): \u4f2a QQ \u79fb\u52a8\u5ba2\u6237\u7aef\u804a\u5929\u7a97\u53e3\uff0c\u5f53\u524d\u5b98\u7f51\u7684\u63a8\u9001\u914d\u7f6e\u5728\u7ebf\u9884\u89c8\u57fa\u4e8e\u6b64\u9879\u76ee\u9b54\u6539\u5b9e\u73b0\r\n* [\u4e3a\u672c\u9879\u76ee\u8d5e\u8d4f\u652f\u6301\u7684\u5c0f\u4f19\u4f34\u4eec](https://bot.starlwr.com/about): \u540d\u5355\u8f83\u957f\uff0c\u8be6\u7ec6\u540d\u5355\u53ef\u70b9\u51fb\u94fe\u63a5\u5728\u5b98\u7f51\u67e5\u770b\r\n* [JetBrains](https://www.jetbrains.com/?from=StarBot): \u4e3a\u5f00\u6e90\u9879\u76ee\u514d\u8d39\u63d0\u4f9b\u7684\u4f18\u79c0 IDE\r\n\r\n[<img src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg\"/>](https://www.jetbrains.com/?from=StarBot)\r\n\r\n## Star History\r\n\r\n[![Star History Chart](https://api.star-history.com/svg?repos=Starlwr/StarBot&type=Date)](https://star-history.com/#Starlwr/StarBot&Date)\r\n\r\n",
    "bugtrack_url": null,
    "license": "GNU Affero General Public License v3.0",
    "summary": "\u4e00\u6b3e\u6781\u901f\uff0c\u591a\u529f\u80fd\u7684\u54d4\u54e9\u54d4\u54e9\u63a8\u9001\u673a\u5668\u4eba",
    "version": "2.0.10",
    "project_urls": {
        "Homepage": "https://github.com/Starlwr/StarBot"
    },
    "split_keywords": [
        "starbot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a2eed2dc4f58e8eb89b1b91b83113c8ea78d729a4a8a22c733aa6a68a282342",
                "md5": "4550b73fa8b6586d56f13136b2c0d079",
                "sha256": "03db6547d1b5ca38d50cbe38f8ea0dbeb86fb58ea77cc94d2d0452db04ffe3ac"
            },
            "downloads": -1,
            "filename": "starbot-bilibili-2.0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "4550b73fa8b6586d56f13136b2c0d079",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 20902628,
            "upload_time": "2024-06-30T08:00:05",
            "upload_time_iso_8601": "2024-06-30T08:00:05.392549Z",
            "url": "https://files.pythonhosted.org/packages/6a/2e/ed2dc4f58e8eb89b1b91b83113c8ea78d729a4a8a22c733aa6a68a282342/starbot-bilibili-2.0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-30 08:00:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Starlwr",
    "github_project": "StarBot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "starbot-bilibili"
}
        
LWR
Elapsed time: 0.28641s