一个用于解析小红书链接的 nonebot2 插件
Project description
nonebot-plugin-xiaohongshu
✨ 基于 NoneBot2 的小红书去水印解析插件 ✨
📖 介绍
这是一个用于 NoneBot2 的小红书解析插件,当发送包含小红书链接的消息时会自动解析并发送无水印的图片或视频。
主要功能:
- 🔗 自动识别:支持小红书分享链接
- 💧 去水印:自动提取高清无水印图片或视频
- 📦 智能合并:
- 图片/视频数量 ≤ 3:直接发送媒体消息
- 图片/视频数量 > 3:合并转发防止刷屏
- 🔌 API 支持:支持配置外部 API 接口,保证解析稳定性
💿 安装
使用 nb-cli 安装
nb plugin install nonebot-plugin-xiaohongshu
使用 pip 安装
pip install nonebot-plugin-xiaohongshu
⚙️ 配置(可选)
在 NoneBot2 项目的 .env 文件中添加以下配置(可选):
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
XHS_API_URL |
str | https://example.com |
小红书解析 API 接口地址 |
说明 :
- 插件默认使用免费公开 API,开箱即用。
- 如遇到接口失效或解析失败,请自行部署小红书解析 API 并在
.env中配置接口
🎉 使用
触发方式:
直接在群聊或私聊中发送包含小红书链接的消息即可。
⚠️ 免责声明
- 本插件仅供学习和交流使用,请勿用于非法用途。
- 插件核心功能依赖第三方 API,无法保证 100% 的可用性。
- 任何因使用本插件产生的问题,开发者不承担任何责任。
- 小红书数据版权归原作者所有。
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_xiaohongshu-0.1.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_xiaohongshu-0.1.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b877c23b836ec053cab34a78fc577a3cc3ce7b94055bbd0de574b3908e9e5c68
|
|
| MD5 |
ab5bfe85862c6e99cbdf904ee2711f5a
|
|
| BLAKE2b-256 |
e47afcdaf92818984b8a9afb1e0e03c9c69d964bb150997e8f4dfd07cd6a3f0f
|
File details
Details for the file nonebot_plugin_xiaohongshu-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_xiaohongshu-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1d2c8f464d191acd2adcde4ef53b475394dbc3cc01b244fe0435212c6c21473
|
|
| MD5 |
a4e3be1c37c1d500b2a8d95d4c145325
|
|
| BLAKE2b-256 |
96a43ab7c1a93e2e6bf2e98e48597d7123a7996b72c08de5396a771ba1cfb1d9
|