Skip to main content

Bison

✨ 通用订阅推送插件 ✨

license pypi python black ruff
codecov action pre-commit ruff
📖 官方文档   |   🚀 快速开始   |   💬 讨论交流

简介

一款自动爬取各种站点,社交平台更新动态,并将信息推送到 QQ 的机器人。 基于 NoneBot2 开发(诞生于明日方舟的蹲饼活动)

本项目原名 nonebot-hk-reporter

寓意本 Bot 要做全世界跑的最快的搬运机器人,后因名字过于暴力改名

本项目名称来源于明日方舟角色拜松——一名龙门的信使,曾经骑自行车追上骑摩托车的德克萨斯

支持的平台:

  • 微博
  • Bilibili
  • Bilibili 直播
  • RSS
  • 明日方舟
  • 网易云音乐
  • FF14

功能

  • 定时爬取指定网站
  • 通过图片发送文本,防止风控
  • 使用队列限制发送频率
  • 使用网页后台管理 Bot 订阅
  • 使用可以设置权重的调度器按时间调节不同账号的权重

使用方法

cd ./admin-frontend
pnpm && pnpm run build

可以使用 Docker,docker-compose,作为插件安装在 NoneBot 中,或者直接运行

在群里 @Bot 或者直接私聊 Bot 发送 “添加订阅”,按照提示输入需要订阅的账号,就可以愉快接收消息了。

参考文档

FAQ

  1. 报错 TypeError: 'type' object is not subscriptable
    本项目使用了 Python 3.10 的语法,请将 Python 版本升级到 3.10 及以上,推荐使用 docker 部署
  2. bot 不理我
    请确认自己是群主或者管理员,并且检查 COMMAND_START 环境变量是否设为 [""] 或者按照 COMMAND_START 中的设置添加命令前缀,例: COMMAND_START=["/"] 则应发送 /添加订阅
  3. 微博漏订阅了 微博更新了新的风控措施,某些含有某些关键词的微博会获取不到。
  4. 无法使用后台管理页面
    1. 确认自己正确配置了 NoneBot 的端口,如果在远程或容器外访问网页请确保 HOST=0.0.0.0
    2. 确认自己的云服务器的防火墙配置正确
    3. 确认自己使用了正确的方法安装插件

参与开发

欢迎各种 PR,参与开发本插件很简单,只需要对相应平台完成几个接口的编写就行。你只需要一点简单的爬虫知识就行。

如果对整体框架有任何意见或者建议,欢迎 issue。

鸣谢

License

MIT

Metadata

Release files for nonebot-bison-migang 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-bison-migang 0.1.7
File Size Uploaded Provenance Actions
nonebot_bison_migang-0.1.7.tar.gz 2.9 MB Without provenance Details for nonebot_bison_migang-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-bison-migang 0.1.7
File Interpreter ABI Platform Actions
nonebot_bison_migang-0.1.7-py3-none-any.whl Python 3 none any Details for nonebot_bison_migang-0.1.7-py3-none-any.whl

Total release size: 5.9 MB

Release files / nonebot_bison_migang-0.1.7.tar.gz

Download URL nonebot_bison_migang-0.1.7.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f3e0e4a13e8c551e753da9d8bcc6092f51bdbc089e039da5b95b0c7b99a66ab1
BLAKE2b-256 checksum
How to use checksums
11cdabd655312065efd853ba63410435563d9ea243c9e86bb590d6b8a5b382f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure

Release files / nonebot_bison_migang-0.1.7-py3-none-any.whl

Download URL nonebot_bison_migang-0.1.7-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2190d96bd7d1e9a8eed6a6bf1ca7b38d44c787d87865ec9b37ecf6591ac62637
BLAKE2b-256 checksum
How to use checksums
5affbfbcf0565572d0b8271c55ca7ff6a008e84bf4ca0bc53790e8e823e44480
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure

Security for nonebot-bison-migang 0.1.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page