简介
一款自动爬取各种站点,社交平台更新动态,并将信息推送到 QQ 的机器人。
基于 NoneBot2 开发(诞生于明日方舟的蹲饼活动)
本项目原名 nonebot-hk-reporter
寓意本 Bot 要做全世界跑的最快的搬运机器人,后因名字过于暴力改名
支持的平台:
- 微博
- Bilibili
- Bilibili 直播
- RSS
- 明日方舟
- 网易云音乐
- FF14
功能
- 定时爬取指定网站
- 通过图片发送文本,防止风控
- 使用队列限制发送频率
- 使用网页后台管理 Bot 订阅
- 使用可以设置权重的调度器按时间调节不同账号的权重
使用方法
[!warning] 如果要使用后台管理功能请使用 pypi 版本或者 docker 版本,如果直接 clone 源代码,需要按下面方式进行 build
cd ./admin-frontend
pnpm && pnpm run build
可以使用 Docker,docker-compose,作为插件安装在 NoneBot 中,或者直接运行
在群里 @Bot 或者直接私聊 Bot 发送 “添加订阅”,按照提示输入需要订阅的账号,就可以愉快接收消息了。
参考文档
FAQ
- 报错
TypeError: 'type' object is not subscriptable
本项目使用了 Python 3.10 的语法,请将 Python 版本升级到 3.10 及以上,推荐使用 docker 部署 - bot 不理我
请确认自己是群主或者管理员,并且检查COMMAND_START环境变量是否设为[""]或者按照COMMAND_START中的设置添加命令前缀,例:COMMAND_START=["/"]则应发送/添加订阅 - 微博漏订阅了 微博更新了新的风控措施,某些含有某些关键词的微博会获取不到。
- 无法使用后台管理页面
- 确认自己正确配置了 NoneBot 的端口,如果在远程或容器外访问网页请确保
HOST=0.0.0.0 - 确认自己的云服务器的防火墙配置正确
- 确认自己使用了正确的方法安装插件
- 确认自己正确配置了 NoneBot 的端口,如果在远程或容器外访问网页请确保
参与开发
欢迎各种 PR,参与开发本插件很简单,只需要对相应平台完成几个接口的编写就行。你只需要一点简单的爬虫知识就行。
如果对整体框架有任何意见或者建议,欢迎 issue。
鸣谢
License
MIT
Metadata
Release files for nonebot-bison 0.9.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_bison-0.9.14.tar.gz | 3.2 MB | Without provenance | Details for nonebot_bison-0.9.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_bison-0.9.14-py3-none-any.whl | Python 3 | none | any | Details for nonebot_bison-0.9.14-py3-none-any.whl |
Total release size: 6.2 MB
Release files / nonebot_bison-0.9.14.tar.gz
| Download URL | nonebot_bison-0.9.14.tar.gz |
|---|---|
| Size | 3.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e472a46e5acf76a2bd0c5f64ffe68ea542870407df21262c87f6c792ec93d13
|
|
BLAKE2b-256 checksum How to use checksums |
51365bf33312f261b44eee34f1e88470cd70dcea76a5d3cd418d2b7c6b1f0970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nonebot_bison-0.9.14-py3-none-any.whl
| Download URL | nonebot_bison-0.9.14-py3-none-any.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0a3cb1684d5e398165009b0f49944db45c0650cd80286bd71dad89592dbda06
|
|
BLAKE2b-256 checksum How to use checksums |
eca18a8f14714dff14bfde26f68ce20c4d25b9b1afdd151533b5356238d2439e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for nonebot-bison 0.9.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.