← 返回
数据分析 中文

bili-mindmap

Turn a Bilibili video URL or BV number into a human-like XMind mind map. Use when the user wants to collect subtitles, comments, AI summary, and transcript f...
将Bilibili视频链接或BV号转换为XMind思维导图。适用于收集字幕、评论、AI摘要及文稿等场景。
pzc163
数据分析 clawhub v0.2.1 2 版本 100000 Key: 无需
★ 1
Stars
📥 671
下载
💾 59
安装
2
版本
#latest

概述

Bili Mindmap

Turn a Bilibili video into a mind map that feels closer to something a human actually organized.

Recommended Flow

  • Python scripts collect video details, subtitles, AI summary, comments, and ASR fallback when needed.
  • The host platform's injected model reads the prepared context and writes a high-quality outline.md.
  • Python renders outline.md into an .xmind file.

Preconditions

  • bili must be installed and available.
  • If audio fallback is needed, bilibili-cli[audio] should be installed.
  • If cloud ASR is used on Windows, the Aliyun config file should already exist.
  • If local ASR is preferred on Linux or macOS, make sure the Parakeet endpoint is running.

Core Constraints

  • Prefer subtitles first. Only fall back to ASR when subtitles are unavailable.
  • Login check is mandatory: run bili status before bili login.
  • The main way to produce outline.md should be the host model, not the local rule-based script.
  • The main structure should come from subtitles or ASR. Comments and the site AI summary are supplemental only.
  • Do not mechanically copy spoken transcript text. Merge themes, compress phrasing, and organize by logic.
  • If information is weak or incomplete, mark it explicitly instead of inventing facts.

Main Workflow

  1. Accept either a full video URL or a BV id.
  2. Run bili status to check login.
  3. If needed, run bili login and wait for the user to scan.
  4. Run python scripts/prepare_bili_context.py --source --login-if-needed --transcribe-if-needed.
  5. Read the generated files: context.md, host_outline_prompt.md, manifest.json, video_details.json, subtitles.txt, ai_summary.txt, and comments.txt.
  6. Feed host_outline_prompt.md to the host platform model and let it write outline.md. Only use scripts/generate_outline.py when the host model path is unavailable.
  7. Run python scripts/render_xmind.py --outline --output .
  8. Tell the user where the .xmind file was written and which sources were most important.

One-Command Workflow

run_bili_mindmap.py now supports two workflows:

  • --workflow host: recommended quality path. Collects context first, then waits for a host-generated outline.md.
  • --workflow local: fallback path. Uses scripts/generate_outline.py locally.

Recommended command:

python scripts/run_bili_mindmap.py   --source "BV1ABcsztEcY"   --output-dir output/BV1ABcsztEcY   --workflow host   --login-if-needed   --transcribe-if-needed

On the first run, if outline.md does not exist yet, the script will stop after context preparation and print:

  • the context.md path
  • the host_outline_prompt.md path
  • the expected outline.md path

After the host model writes outline.md, run the same command again and it will render the .xmind file.

Fallback Workflow

When the host model cannot be used, fall back to the local outline generator:

python scripts/generate_outline.py   --context-dir <output-dir>   --output <output-dir/outline.md>

This is only a fallback. It is usually lower quality than the host-model result.

Collection Strategy

Collect information in this order:

  1. bili video for video details
  2. bili video --subtitle for subtitles
  3. bili video --ai for the site AI summary
  4. bili video --comments for hot comments
  5. If subtitles are unavailable:
    • bili audio -o to extract audio
    • auto mode falls back in moonshine -> parakeet -> aliyun order

Output Requirements

  • Use the video title as the root topic.
  • Keep subtitles or ASR as the main evidence.
  • Prefer abstraction and synthesis over transcript copying.
  • Mark uncertainty explicitly.
  • The final artifacts should include both outline.md and .xmind.

Important Files

  • scripts/prepare_bili_context.py: login checks, content collection, ASR fallback, and generation of context.md plus host_outline_prompt.md
  • scripts/generate_outline.py: local fallback outline generator
  • scripts/render_xmind.py: pure Python XMind renderer
  • scripts/run_bili_mindmap.py: one-command entry point with host and local workflows
  • references/mindmap-outline-template.md: structure template for the final outline
  • references/host-llm-outline-spec.md: quality and behavior rules for the host model path
  • vendor/aliyun_asr/: bundled Aliyun file transcription implementation

版本历史

共 2 个版本

  • v0.2.1 当前
    2026-03-29 18:15 安全 安全
  • v0.1.0
    2026-03-26 22:18

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,104
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,435
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,959