把 YouTube 影片逐字稿整理成 NotebookLM 來源檔:同一個來源會自動合併,
接近來源上限就續接成 _partN,用來減少 NotebookLM 來源數量。
skill 內含可攜腳本:scripts/get_transcripts.py。
<skill-root> 指包含 SKILL.md 的資料夾;在這個 repo 內是
skills/yt-transcript。
python3 -m venv .venv
./.venv/bin/python -m pip install pandas requestsexport GEMINI_API_KEY="YOUR_KEY"或放在 <skill-root>/scripts/ 同層:
.gemini_key_paid.gemini_key_free
CSV 模式(youtube_videos.csv):
必須有 Title、URL、NotebookSource
URL 模式:
直接提供 SOURCE_NAME + URL 清單
在「要輸出結果的資料夾」執行:
./.venv/bin/python <skill-root>/scripts/get_transcripts.pyURL 模式範例:
SOURCE_NAME="LLM" URLS="https://youtu.be/AAA https://youtu.be/BBB" \
./.venv/bin/python <skill-root>/scripts/get_transcripts.py- 逐字稿:
transcript/<NotebookSource>.md/_partN.md - 紀錄:
logs/run_log.csv
下列路徑擇一即可。建議用 copy 或 symlink 把
skills/yt-transcript/放進對應位置。
- 全域:
~/.codex/skills/yt-transcript/
- 專案:
<repo>/.cursor/skills/yt-transcript/ - 全域:
~/.cursor/skills/yt-transcript/ - 也會掃描:
.claude/skills//~/.claude/skills/
- 專案:
<repo>/.claude/skills/yt-transcript/ - 全域:
~/.claude/skills/yt-transcript/
- 專案:
<workspace>/.agent/skills/yt-transcript/ - 全域:
~/.gemini/antigravity/skills/yt-transcript/
skills/yt-transcript/SKILL.mdskills/yt-transcript/reference.mdskills/yt-transcript/scripts/get_transcripts.pyskills/yt-transcript/scripts/prompt.txtskills/yt-transcript/LICENSE.txt
MIT