← 返回 Skills 市场
edisonchenai

Edison Youtube Full

作者 EdisonChenAI · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
506
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install edison-youtube-full
功能描述
Complete YouTube toolkit for agents: search videos, fetch metadata, browse channels and playlists, and pull transcripts. Use when you need comprehensive YouT...
使用说明 (SKILL.md)

YouTube Full Skill

本技能把常见的 YouTube 工作流(搜索、视频/频道/播放列表元数据、字幕抓取)封装成可复用脚本,方便在单个会话里串联使用。

依赖与准备

  1. YouTube Data API Key

    • Google Cloud Console 启用 YouTube Data API v3,并创建 API Key。
    • 在当前 shell 设置:
      export YOUTUBE_API_KEY="YOUR_KEY"
      
      或者在运行脚本时使用 --api-key 参数。
  2. Python 依赖(建议放在虚拟环境):

    pip install -r scripts/requirements.txt
    
    • requests:调用官方 REST API
    • youtube-transcript-api:抓取字幕
  3. 所有脚本默认输出 JSON(stdout),方便直接被上游工具读取,或通过 jq 等命令行处理。

快速开始

任务 命令 说明
搜索视频 python scripts/search_videos.py --query "openclaw" --max-results 5 返回匹配视频/频道集合
视频详情 python scripts/get_video_details.py --ids dQw4w9WgXcQ 支持一次查询多个视频 ID(逗号分隔)
频道最新上传 python scripts/get_channel_videos.py --channel-id UC_x5XG1OV2P6uZZ5FSM9Ttw --max-results 10 可指定 order=latest/popular
播放列表内容 python scripts/get_playlist_items.py --playlist-id PLBCF2DAC6FFB574DE 支持分页(自动拉全量)
字幕抓取 python scripts/get_transcript.py --video-id dQw4w9WgXcQ --languages zh-CN,en 按语言优先级尝试抓取

🌐 更多 API 字段参考 references/api_quickstart.md

工作流建议

  1. 组合式使用:先用 search_videos.py 拿到 videoId/channelId,再调用其他脚本获取详情或字幕。
  2. 批量处理:大多数脚本支持一次性传入多个 ID(用逗号分隔),能减少 API 调用次数。
  3. 速率限制:YouTube Data API 默认 10,000 quota/天。search/videos 等接口有不同配额消耗,见参考文档。
  4. 字幕回退youtube-transcript-api 会自动 fallback 到指定语言列表的下一个选项;若视频无字幕会抛异常,脚本会以非零退出码返回。

文件结构

youtube-full/
├── SKILL.md
├── references/
│   └── api_quickstart.md
└── scripts/
    ├── requirements.txt
    ├── search_videos.py
    ├── get_video_details.py
    ├── get_channel_videos.py
    ├── get_playlist_items.py
    └── get_transcript.py

故障排查

问题 可能原因 解决办法
HTTP 403 / quotaExceeded API Key 配额不足或未启用服务 去 GCP 控制台检查配额、启用结算或更换 Key
找不到字幕 视频关闭字幕或无匹配语言 换语言列表、改用自动字幕 (--languages auto)
HttpAccessTokenRefreshError 使用 OAuth token 且已过期 重新获取 token 或改用 API Key
CLI 报 ModuleNotFoundError 缺少依赖 重新执行 pip install -r scripts/requirements.txt

最佳实践

  • 把常用命令写成脚本/Makefile,方便一键获取多条数据。
  • 对于需要批量处理的视频列表,优先调用 get_playlist_items.py / get_channel_videos.py 拉取 ID,然后再批量获取详情或字幕。
  • 脚本输出 JSON,建议直接 | jq 做筛选或保存为文件供后续步骤使用。
安全使用建议
This skill's README looks like a normal YouTube CLI toolkit, but the package is incomplete: SKILL.md expects local scripts and a YOUTUBE_API_KEY while the registry entry lists no env vars or code files. Before installing or running anything, ask the publisher for the missing repository or the actual scripts/requirements.txt so you can inspect the code. If you must run it: (1) only provide a YouTube API key with least privilege and consider using a dedicated key for this tool, (2) run pip installs inside an isolated virtualenv or container and review requirements.txt, and (3) review the actual scripts for network calls, arbitrary shell execution, or data exfiltration. If the publisher cannot supply source code or a trustworthy origin (e.g., GitHub repo/official release), treat the skill as untrusted.
功能分析
Type: OpenClaw Skill Name: edison-youtube-full Version: 1.0.0 The skill bundle 'edison-youtube-full' is a standard toolkit for interacting with the YouTube Data API and fetching video transcripts. The documentation (SKILL.md) provides clear, legitimate instructions for setting up API keys and using Python scripts (e.g., search_videos.py, get_transcript.py) with well-known libraries like 'requests' and 'youtube-transcript-api'. No evidence of malicious intent, data exfiltration, or prompt injection was found in the provided files.
能力评估
Purpose & Capability
The name/description (YouTube toolkit) align with the instructions (YouTube Data API calls and transcript extraction). Requested libraries (requests, youtube-transcript-api) and an API key are proportionate to the stated purpose. However, the registry metadata claims no required env vars and no code files, while SKILL.md explicitly requires a YOUTUBE_API_KEY and describes multiple local scripts — this metadata vs. instructions mismatch is unexpected.
Instruction Scope
SKILL.md instructs the agent/user to set an environment variable (YOUTUBE_API_KEY), install Python deps via pip, and run a set of local Python scripts under scripts/*.py. Those instructions are narrow and on-purpose for a YouTube tool, but the referenced scripts and requirements.txt are not present in the package manifest. That gap means the instructions cannot be executed as-is and could hide missing behavior if the code comes from an external source later.
Install Mechanism
There is no install spec (instruction-only), which minimizes automated installation risk. The SKILL.md recommends running pip install -r scripts/requirements.txt (typical for Python projects) — this implies downloading PyPI packages at runtime, which is expected but should be reviewed. The bigger risk is the absence of the scripts/requirements.txt file in the package; the user would need to obtain code from elsewhere.
Credentials
The SKILL.md requires a YOUTUBE_API_KEY (appropriate for this functionality), but the registry metadata incorrectly lists no required env vars. There are no extra unrelated credentials requested. The inconsistency between declared requirements and the runtime instructions is problematic: users may be unaware a key is needed or may be prompted to supply secrets to an external/unknown code source.
Persistence & Privilege
The skill does not request persistent/always-on privileges and uses default autonomous invocation settings. It does not declare modifications to other skills or system-wide settings. No elevated persistence is requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install edison-youtube-full
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /edison-youtube-full 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Complete YouTube workflow toolkit for agents. - Search YouTube videos, fetch video/channel/playlist metadata, and pull transcripts in one workflow. - Includes reusable scripts for common tasks: searching, querying metadata (video, channel, playlist), and extracting transcripts. - Scripts accept multiple IDs for batch processing; all output JSON for easy integration. - Requires YouTube Data API key and minimal Python dependencies. - Comprehensive README (SKILL.md) with quickstart guides, troubleshooting, and best practices.
元数据
Slug edison-youtube-full
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Edison Youtube Full 是什么?

Complete YouTube toolkit for agents: search videos, fetch metadata, browse channels and playlists, and pull transcripts. Use when you need comprehensive YouT... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 506 次。

如何安装 Edison Youtube Full?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install edison-youtube-full」即可一键安装,无需额外配置。

Edison Youtube Full 是免费的吗?

是的,Edison Youtube Full 完全免费(开源免费),可自由下载、安装和使用。

Edison Youtube Full 支持哪些平台?

Edison Youtube Full 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Edison Youtube Full?

由 EdisonChenAI(@edisonchenai)开发并维护,当前版本 v1.0.0。

💬 留言讨论