bili-to-tele


Namebili-to-tele JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/YourUsername/bili_to_tele
SummaryA tool to push Bilibili live and dynamic updates to Telegram
upload_time2024-10-09 03:48:02
maintainerNone
docs_urlNone
authoraiko
requires_python>=3.7
licenseMIT
keywords bilibili telegram push notifications
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/YourUsername/bili_to_tele",
    "name": "bili-to-tele",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "bilibili telegram push notifications",
    "author": "aiko",
    "author_email": "hideonbushplease774@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/0f/8218e7e517d564c03c59882aa07d99e3ec61c40a3437674d0bb015a79151/bili_to_tele-1.0.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n![logo](https://bot.starlwr.com/images/static/logo.jpg)\n\n[![PyPI](https://img.shields.io/pypi/v/starbot-bilibili)](https://pypi.org/project/starbot-bilibili)\n[![Python](https://img.shields.io/badge/python-3.10%20|%203.11-blue)](https://www.python.org)\n[![License](https://img.shields.io/github/license/Starlwr/StarBot)](https://github.com/Starlwr/StarBot/blob/master/LICENSE)\n[![STARS](https://img.shields.io/github/stars/Starlwr/StarBot?color=yellow&label=Stars)](https://github.com/Starlwr/StarBot/stargazers)\n\n\n**\u4e00\u4e2a\u6781\u901f\uff0c\u591a\u529f\u80fd\u7684\u54d4\u54e9\u54d4\u54e9\u63a8\u9001\u673a\u5668\u4eba**\n</div>\n\n## \u7279\u6027\n\n* \u6781\u901f\u7684\u76f4\u64ad\u63a8\u9001\uff0c\u901a\u8fc7\u8fde\u63a5\u76f4\u64ad\u95f4\u5b9e\u73b0\n* \u63a5\u8fd1\u4e8e\u624b\u673a\u7aef\u6548\u679c\u7684\u7ed8\u56fe\u5f0f\u52a8\u6001\u63a8\u9001\n* \u8be6\u7ec6\u7684\u76f4\u64ad\u6570\u636e\u7edf\u8ba1\n* \u7fa4\u5185\u6570\u636e\u67e5\u8be2\u3001\u699c\u5355\u67e5\u8be2\n\n## \u5feb\u901f\u5f00\u59cb\n\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\n\n### \u5b89\u88c5\n\n```shell\npip install starbot-bilibili\n```\n\n### \u542f\u52a8\n\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  \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)\n\n```python\nfrom starbot.core.bot import StarBot\nfrom starbot.core.datasource import JsonDataSource\nfrom starbot.utils import config\n\nconfig.set_credential(sessdata=\"B\u7ad9\u8d26\u53f7\u7684sessdata\", bili_jct=\"B\u7ad9\u8d26\u53f7\u7684bili_jct\", buvid3=\"B\u7ad9\u8d26\u53f7\u7684buvid3\")\n\ndatasource = JsonDataSource(\"\u63a8\u9001\u914d\u7f6e.json\")\nbot = StarBot(datasource)\nbot.run()\n```\n\n## \u9e23\u8c22\n\n* [bilibili-api](https://github.com/MoyuScript/bilibili-api): \u54d4\u54e9\u54d4\u54e9\u7684 API \u8c03\u7528\u6a21\u5757\n* [bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect): \u54d4\u54e9\u54d4\u54e9 API \u6536\u96c6\u6574\u7406\n* [mirai](https://github.com/mamoe/mirai): \u9ad8\u6548\u7387 QQ \u673a\u5668\u4eba\u652f\u6301\u5e93\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\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\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\n* [JetBrains](https://www.jetbrains.com/?from=StarBot): \u4e3a\u5f00\u6e90\u9879\u76ee\u514d\u8d39\u63d0\u4f9b\u7684\u4f18\u79c0 IDE\n\n[<img src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg\"/>](https://www.jetbrains.com/?from=StarBot)\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Starlwr/StarBot&type=Date)](https://star-history.com/#Starlwr/StarBot&Date)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A tool to push Bilibili live and dynamic updates to Telegram",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/YourUsername/bili_to_tele"
    },
    "split_keywords": [
        "bilibili",
        "telegram",
        "push",
        "notifications"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c25844413338212c6e2975ddfc83cb59e789fb12189bb40dc4100d006b72380",
                "md5": "ce73a265678cbbb01bb144763aa10488",
                "sha256": "7d3ca29012279125dd11d6b6e954295774bc735f073c2e7f8552d1cb7b48fd48"
            },
            "downloads": -1,
            "filename": "bili_to_tele-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ce73a265678cbbb01bb144763aa10488",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 92565,
            "upload_time": "2024-10-09T03:48:01",
            "upload_time_iso_8601": "2024-10-09T03:48:01.240379Z",
            "url": "https://files.pythonhosted.org/packages/5c/25/844413338212c6e2975ddfc83cb59e789fb12189bb40dc4100d006b72380/bili_to_tele-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf0f8218e7e517d564c03c59882aa07d99e3ec61c40a3437674d0bb015a79151",
                "md5": "ed57954a25d5b361374c65038274b78e",
                "sha256": "993bcde526ec4d36cd7350acbb7d08b16255cdb2ea00f8e069e76a37321cf3cc"
            },
            "downloads": -1,
            "filename": "bili_to_tele-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ed57954a25d5b361374c65038274b78e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 80604,
            "upload_time": "2024-10-09T03:48:02",
            "upload_time_iso_8601": "2024-10-09T03:48:02.591606Z",
            "url": "https://files.pythonhosted.org/packages/cf/0f/8218e7e517d564c03c59882aa07d99e3ec61c40a3437674d0bb015a79151/bili_to_tele-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-09 03:48:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "YourUsername",
    "github_project": "bili_to_tele",
    "github_not_found": true,
    "lcname": "bili-to-tele"
}
        
Elapsed time: 0.40065s