![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) **一个极速,多功能的哔哩哔哩推送机器人**
## 特性 * 极速的直播推送,通过连接直播间实现 * 接近于手机端效果的绘图式动态推送 * 详细的直播数据统计 * 群内数据查询、榜单查询 ## 快速开始 项目依赖于 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 [](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)