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.4.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.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xiaohongshu-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b877c23b836ec053cab34a78fc577a3cc3ce7b94055bbd0de574b3908e9e5c68
MD5 ab5bfe85862c6e99cbdf904ee2711f5a
BLAKE2b-256 e47afcdaf92818984b8a9afb1e0e03c9c69d964bb150997e8f4dfd07cd6a3f0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xiaohongshu-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d2c8f464d191acd2adcde4ef53b475394dbc3cc01b244fe0435212c6c21473
MD5 a4e3be1c37c1d500b2a8d95d4c145325
BLAKE2b-256 96a43ab7c1a93e2e6bf2e98e48597d7123a7996b72c08de5396a771ba1cfb1d9

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