back to home

fllesser / nonebot-plugin-parser

社交媒体分享链接解析插件

159 stars
21 forks
11 issues
PythonJinja

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing fllesser/nonebot-plugin-parser in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/fllesser/nonebot-plugin-parser)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

✨ Nonebot2 链接分享自动解析插件 ✨ > [!IMPORTANT] > **收藏项目**,你将从 GitHub 上无延迟地接收所有发布通知~ ⭐️ 📖 介绍 | 平台 | 触发的消息形态 | 视频 | 图集 | 音频 | | ------- | --------------------------------- | ---- | ---- | ---- | | B 站 | av 号/BV 号/链接/短链/卡片/小程序 | ✅​ | ✅​ | ✅​ | | 抖音 | 链接(分享链接,兼容电脑端链接) | ✅​ | ✅​ | ❌️ | | 微博 | 链接(博文,视频,show, 文章) | ✅​ | ✅​ | ❌️ | | 小红书 | 链接(含短链)/卡片 | ✅​ | ✅​ | ❌️ | | 快手 | 链接(包含标准链接和短链) | ✅​ | ✅​ | ❌️ | | acfun | 链接 | ✅​ | ❌️ | ❌️ | | youtube | 链接(含短链) | ✅​ | ❌️ | ✅​ | | tiktok | 链接 | ✅​ | ❌️ | ❌️ | | twitter | 链接 | ✅​ | ✅​ | ❌️ | 支持的链接,可参考 测试链接 🎨 效果图 插件默认启用 PIL 实现的通用媒体卡片渲染,效果图如下 💿 安装 > [!Warning] > **如果你已经在使用 nonebot-plugin-resolver[2],请在安装此插件前卸载** 使用 nb-cli 安装/更新 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装 nb plugin install nonebot-plugin-parser --upgrade 使用 pypi 源更新 nb plugin install nonebot-plugin-parser --upgrade -i https://pypi.org/simple 安装仓库 dev 分支 uv pip install git+https://github.com/fllesser/nonebot-plugin-parser.git@dev 使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令 uv 使用 uv 安装 uv add nonebot-plugin-parser 安装仓库 dev 分支 uv add git+https://github.com/fllesser/nonebot-plugin-parser.git@master pip pip install --upgrade nonebot-plugin-parser pdm pdm add nonebot-plugin-parser poetry poetry add nonebot-plugin-parser 打开 nonebot2 项目根目录下的 文件, 在 部分追加写入 plugins = ["nonebot_plugin_parser"] 使用 nbr 安装(使用 uv 管理依赖可用) nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2 nbr plugin install nonebot-plugin-parser 使用 **pypi** 源安装 nbr plugin install nonebot-plugin-parser -i "https://pypi.org/simple" 使用**清华源**安装 nbr plugin install nonebot-plugin-parser -i "https://pypi.tuna.tsinghua.edu.cn/simple" 安装可选依赖 , 用于解析 和 视频 uv add "nonebot-plugin-parser[ytdlp]" emosvg 用于渲染 表情, 基于 和 实现, 用户,请确保自己会配置 , 插件默认使用的依赖于网络的 ,已缓存的 渲染速度略快于 uv add "nonebot-plugin-parser[emosvg]" , 无 js 渲染 , 插件目前还没有供 使用的模版, 因此可忽略此依赖 uv add "nonebot-plugin-parser[htmlkit]" , 使用 渲染 , 插件自 起已正式支持 uv add "nonebot-plugin-parser[htmlrender]" 现版本推荐组合 uv add "nonebot-plugin-parser[ytdlp,emosvg]" 顾名思义,安装所有可选依赖 uv add "nonebot-plugin-parser[all]" 安装必要组件 部分解析依赖 sudo apt-get install ffmpeg 其他 参考(原项目推荐): https://gitee.com/baihu433/ffmpeg 参考(原项目推荐): https://www.jianshu.com/p/5015a477de3c 自 起要求用户安装外部 ,参考 https://github.com/yt-dlp/yt-dlp/releases/tag/2025.11.12, 推荐安装 Deno curl -fsSL https://deno.land/install.sh | sh irm https://deno.land/install.ps1 | iex ⚙️ 配置 配置项 推荐的字体 • LXGW ZhenKai / 霞鹜臻楷 效果图使用字体 • LXGW Neo XiHei / 霞鹜新晰黑 • LXGW Neo ZhiSong / 霞鹜新致宋 / 霞鶩新緻宋 🎉 使用 | 指令 | 权限 | 需要@ | 范围 | 说明 | | :------: | :-------------------: | :---: | :--: | :---------------: | | 开启解析 | SUPERUSER/OWNER/ADMIN | 是 | 群聊 | 开启解析 | | 关闭解析 | SUPERUSER/OWNER/ADMIN | 是 | 群聊 | 关闭解析 | | bm | - | 否 | 群聊 | 下载 B 站音频 | | ym | - | 否 | 群聊 | 下载 youtube 音频 | | blogin | SUPERUSER | 否 | 私聊 | 扫码获取 B 站凭证 | 🧩 扩展 > [!IMPORTANT] > 插件自 版本开始支持自定义解析器,通过继承 类并实现 , 即可 完整示例 辅助函数 > 构建作者信息 > 构建视频内容 > 构建图集内容 > 创建动图内容(GIF),平台一般只提供视频(后续插件会做自动转为 gif 的处理) > 重定向 url 🌟 星星 🎉 致谢 nonebot-plugin-resolver parse-video-py