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.2.tar.gz (5.0 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.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xiaohongshu-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d251a7d95268f5d8fb69213c00c0e78c5758e8c99dc474d1c3ee4f7983cfb938
MD5 bbab3491db758b56498c0dcb90aa3b7d
BLAKE2b-256 a27f8bafa6980b0a1aa772158c85bdb5a7367ab187d3c1cfd331600a317aca25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xiaohongshu-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3627aa560f86e075c00efb254321d2b1eefbd9f1a64d1d34f86913bca932f6c
MD5 c92cd0ba4f27b869cc4494411b68996d
BLAKE2b-256 6524ea03bee22f59e61f77a4ff3402504151b42f70b1ee1d2de3999a2147a5a3

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