返回顶部
s

scavio-youtubeYouTube搜索

Search YouTube, retrieve video metadata, extract full transcripts, and check AI trainability. Use for RAG pipelines or any task requiring video content.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
98
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

scavio-youtube

通过Scavio进行YouTube搜索和转录

搜索YouTube,检索视频元数据,提取转录文本,并检查AI可训练性。所有端点均返回结构化JSON。

触发时机

当用户要求以下内容时使用此技能:

  • - 查找某个主题的YouTube视频
  • 获取YouTube视频的转录文本(用于摘要、RAG、问答)
  • 查看观看次数、上传日期或视频元数据
  • 验证视频是否适合AI训练或是否有字幕可用

设置

在https://scavio.dev获取免费API密钥(每月1000次免费额度,无需银行卡):

bash
export SCAVIOAPIKEY=skliveyour_key

工作流程

  1. 1. 查找视频: 使用主题调用/search。使用sortby: viewcount获取观看次数最多的结果。
  2. 获取内容: 如果用户需要摘要,使用搜索结果中的videoId调用/transcript。
  3. 检查元数据: 调用/metadata获取观看次数、点赞数、标签或频道信息。
  4. RAG管道: 直接将转录片段注入上下文。每个片段包含text、start和duration。
  5. 可训练性: 在摄取前调用/trainability检查许可和字幕可用性。

端点

端点描述
POST https://api.scavio.dev/api/v1/youtube/search搜索YouTube视频
POST https://api.scavio.dev/api/v1/youtube/metadata
获取结构化视频元数据 | | POST https://api.scavio.dev/api/v1/youtube/transcript | 提取视频转录文本 | | POST https://api.scavio.dev/api/v1/youtube/trainability | 检查AI训练适用性 |

Authorization: Bearer $SCAVIOAPIKEY

搜索参数

参数类型默认值描述
search字符串必填搜索查询 — 注意:此字段为search,而非query
uploaddate
字符串 | -- | lasthour、today、thisweek、thismonth、this_year | | type | 字符串 | -- | video、channel或playlist | | duration | 字符串 | -- | short(< 4分钟)、medium(4-20分钟)、long(> 20分钟) | | sortby | 字符串 | relevance | relevance、date、viewcount、rating | | subtitles | 布尔值 | false | 仅包含有字幕的视频 | | creative_commons | 布尔值 | false | 仅包含知识共享视频 |

转录参数

参数类型默认值描述
video_id字符串必填YouTube视频ID(例如sVcwVQRHIc8)
language
字符串 | en | 转录文本的语言代码 | | transcriptorigin | 字符串 | -- | autogenerated或uploader_provided |

示例

python
import os, requests

BASE = https://api.scavio.dev
HEADERS = {Authorization: fBearer {os.environ[SCAVIOAPIKEY]}}

搜索 — 使用search字段,而非query

results = requests.post(f{BASE}/api/v1/youtube/search, headers=HEADERS, json={search: langchain tutorial, type: video, sortby: viewcount}).json()

video_id = results[data][0][videoId]

用于RAG的转录文本

transcript = requests.post(f{BASE}/api/v1/youtube/transcript, headers=HEADERS, json={videoid: videoid, language: en}).json()

text = .join(seg[text] for seg in transcript[data])

搜索响应

json
{
data: [
{
videoId: sVcwVQRHIc8,
title: Learn RAG From Scratch - Python AI Tutorial,
channel: freeCodeCamp.org,
publishedAt: 2024-04-17,
duration: 2:33:11,
viewCount: 1258310,
thumbnail: https://i.ytimg.com/vi/sVcwVQRHIc8/hq720.jpg
}
],
credits_used: 1
}

转录响应:[{text: ..., start: 0.0, duration: 3.2}]

元数据响应:title、viewcount、likecount、commentcount、categories、tags、channelid、upload_date、thumbnails。

可训练性响应:hastranscript、transcriptlanguages、license、is_trainable。

约束条件

  • - 搜索参数为search,而非query — 这与Scavio的其他端点不同。
  • 切勿虚构视频ID、观看次数或转录内容。
  • 转录文本为原始字幕 — 可能缺少标点符号。请清晰地总结。
  • 如果转录文本不可用,在报告错误前先调用/trainability检查原因。

失败处理

  • - 如果搜索无结果,建议使用不同的关键词或放宽筛选条件。
  • 如果转录失败,使用/trainability检查视频是否有字幕。
  • 如果未设置SCAVIOAPIKEY,提示用户先导出后再继续。

LangChain

bash
pip install scavio-langchain

python
from scavio_langchain import ScavioSearchTool
tool = ScavioSearchTool(engine=youtube)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 scavio-youtube-1775908569 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 scavio-youtube-1775908569 技能

通过命令行安装

skillhub install scavio-youtube-1775908569

下载

⬇ 下载 scavio-youtube v1.0.1(免费)

文件大小: 2.77 KB | 发布时间: 2026-4-12 11:17

v1.0.1 最新 2026-4-12 11:17
Version 2.0.0 is a major update with expanded guidance, improved workflow description, and guardrails.

- Clarifies intended use cases, when to trigger, and workflow for RAG, search, and AI training.
- Documents stricter guardrails: always use the search parameter "search" (not "query") and never fabricate data.
- Adds a new "Failure handling" section describing what to do if results are missing.
- Example code and response data are updated for clarity, with better explanation of search/transcript/metadata behavior.
- Metadata now includes transcript segment structure, and endpoints are more distinctly described.
- Homepage and tags updated; minor rewording for accessibility and accuracy.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部