Skip to main content

一个用于解析小红书链接的 nonebot2 插件

Project description

nonebot-plugin-xiaohongshu

✨ 基于 NoneBot2 的小红书去水印解析插件 ✨

license pypi python

📖 介绍

这是一个用于 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 接口地址

说明

  1. 插件默认使用免费公开 API,开箱即用。
  2. 如遇到接口失效或解析失败,请自行部署小红书解析 API 并在 .env 中配置接口

🎉 使用

触发方式:

直接在群聊或私聊中发送包含小红书链接的消息即可。

⚠️ 免责声明

  1. 本插件仅供学习和交流使用,请勿用于非法用途。
  2. 插件核心功能依赖第三方 API,无法保证 100% 的可用性。
  3. 任何因使用本插件产生的问题,开发者不承担任何责任。
  4. 小红书数据版权归原作者所有。

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_xiaohongshu-0.1.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_xiaohongshu-0.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_xiaohongshu-0.1.3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_xiaohongshu-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a08b0537468c660e259d082ddabfa0181e9bdfd1d3a4567e92a3fc576a867e36
MD5 5552f16af0a9ce341ac857476b9c1cd7
BLAKE2b-256 d0e5b8ea75e8ebd06fcfaf78e1152329c4ca6d4e1b7c9a938518eb50609b792f

See more details on using hashes here.

File details

Details for the file nonebot_plugin_xiaohongshu-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_xiaohongshu-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 413d326583eee09fa607f38eebb0ca1999ea33d78427490e37fc661dfb8f4a00
MD5 f1e8451ce6aaf3fe1128f26808903c19
BLAKE2b-256 6e4d2e60e7a97024ed05b6f00ac48ec7cb96f6421af08e27d30c6ed92c970227

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page