← All skills
Tencent SkillHub · Developer Tools

YouTube Publisher

YouTube 视频自动上传工具。支持视频上传、设置标题/描述/标签/缩略图、管理频道和播放列表。基于 YouTube Data API v3 + OAuth 2.0。

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

YouTube 视频自动上传工具。支持视频上传、设置标题/描述/标签/缩略图、管理频道和播放列表。基于 YouTube Data API v3 + OAuth 2.0。

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, client_secret.example.json, scripts/youtube_upload.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 18 sections Open source page

youtube-publisher

YouTube 视频自动上传与管理工具 基于 YouTube Data API v3 + OAuth 2.0,支持从命令行自动上传视频到 YouTube。

架构

本地 Mac (Python) ↓ OAuth 2.0 认证 Google YouTube Data API v3 ↓ 断点续传上传 YouTube 频道

功能

✅ 视频上传(支持大文件断点续传,10MB 分块) ✅ 设置标题、描述、标签、分类 ✅ 隐私状态控制(private / public / unlisted) ✅ 自定义缩略图 ✅ 添加到播放列表 ✅ 频道信息查询 ✅ 已上传视频列表 ✅ OAuth 2.0 自动刷新 Token

第一步:Google Cloud Console 配置

⚠️ 这一步必须手动完成,只需做一次。 打开 Google Cloud Console 创建新项目(或选择已有项目) 启用 API: 搜索 "YouTube Data API v3" → 点击 "启用" 创建 OAuth 凭证: 左侧菜单 → "API 和服务" → "凭据" "创建凭据" → "OAuth 客户端 ID" 应用类型选 "桌面应用" 名称随意(如 "OpenClaw YouTube") 下载 JSON 文件 保存凭证文件: mv ~/Downloads/client_secret_*.json ~/.openclaw/workspace/skills/youtube-publisher/client_secret.json 注意: 如果项目处于"测试"状态,需要在 OAuth 同意屏幕 → 测试用户 中添加你的 Google 邮箱。

第二步:安装依赖

pip3 install google-api-python-client google-auth-oauthlib google-auth-httplib2

第三步:首次授权

python3 {baseDir}/scripts/youtube_upload.py auth 浏览器会自动打开 Google 授权页面,登录并授权后,Token 自动保存到本地。后续使用无需再授权。

第四步:上传视频

# 基本上传(默认 private) python3 {baseDir}/scripts/youtube_upload.py upload video.mp4 \ --title "视频标题" \ --description "视频描述" \ --tags AI OpenClaw 自动化 # 公开发布 + 设置缩略图 python3 {baseDir}/scripts/youtube_upload.py upload video.mp4 \ --title "OpenClaw 实战教程" \ --description "详细教程..." \ --tags AI OpenClaw 教程 \ --privacy public \ --thumbnail cover.png \ --category 28 # 上传并添加到播放列表 python3 {baseDir}/scripts/youtube_upload.py upload video.mp4 \ --title "系列教程 #1" \ --playlist PLxxxxxx

其他命令

# 查看频道信息 python3 {baseDir}/scripts/youtube_upload.py channels # 列出最近上传的视频 python3 {baseDir}/scripts/youtube_upload.py list python3 {baseDir}/scripts/youtube_upload.py list -n 20 # 列出播放列表 python3 {baseDir}/scripts/youtube_upload.py playlists

在 OpenClaw 中使用

直接对 Agent 说: "帮我把 ~/Videos/demo.mp4 上传到 YouTube,标题是 xxx,标签加上 AI 和教程" Agent 会自动调用上传脚本完成发布。

视频分类 ID 参考

分类ID分类ID电影/动画1游戏20汽车/交通2博客/Vlog22音乐10喜剧23宠物/动物15娱乐24体育17新闻25短片18时尚26旅游/活动19教育27科技28

隐私状态

private — 仅自己可见(默认,推荐先用此状态检查后再公开) unlisted — 不公开列出,有链接可访问 public — 公开发布

1. "client_secret.json 找不到"

请按照"第一步"从 Google Cloud Console 下载 OAuth 凭证文件。

2. "Access blocked: This app's request is invalid"

OAuth 同意屏幕未配置。在 Google Cloud Console → OAuth 同意屏幕 → 设置。

3. "The user has exceeded the number of videos they may upload"

YouTube API 有每日上传配额限制(通常约 6 个视频/天)。

4. "缩略图设置失败"

自定义缩略图需要频道已通过电话号码验证。

5. Token 过期

脚本会自动刷新 Token。如果持续失败,删除 token.json 重新授权: rm ~/.openclaw/workspace/skills/youtube-publisher/token.json python3 {baseDir}/scripts/youtube_upload.py auth

文件结构

youtube-publisher/ ├── SKILL.md # 本文档 ├── client_secret.json # Google OAuth 凭证(需自行配置) ├── token.json # 自动生成的访问令牌 └── scripts/ └── youtube_upload.py # 上传脚本

参考资料

YouTube Data API v3 Google Cloud Console OAuth 2.0 配置指南 视频上传 API API 配额说明

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs1 Scripts1 Config
  • SKILL.md Primary doc
  • scripts/youtube_upload.py Scripts
  • client_secret.example.json Config