youtube-batch-transcript-extractor-api-skill
它能做什么
这项技能为一批 YouTube 视频收集完整字幕稿、点赞数和频道详情。适合需要大量视频文字内容进行分析的研究人员和营销人员。
适用场景
- ✓当你需要某个话题下许多 YouTube 视频的字幕稿时。
- ✓当你想从一组视频列表中收集字幕以便分析的时候。
- ✓当你需要一批视频的点赞数和频道详情时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/video-platforms/youtube-batch-transcript-extractor-api-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我查找过去六个月关于间歇性禁食的 YouTube 视频,并提取它们的完整字幕稿和点赞数。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能把你的关键词和筛选条件发送给 BrowserAct 模板。模板会搜索 YouTube,收集符合条件视频的字幕稿和元数据,并以一批结果返回。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
YouTube Batch Transcript Extractor API Skill
📖 Introduction
This skill uses the BrowserAct YouTube Batch Transcript Extractor API template to provide users with an automated service for extracting YouTube video transcripts and metadata in batch. Simply by providing search keywords and filters, you can batch extract full video transcripts, likes, and channel metadata without writing crawler scripts.
✨ Features
- No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid generative AI hallucinations.
- No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
- No IP access restrictions or geofencing: No need to deal with regional IP restrictions.
- Faster execution: Tasks execute faster compared to pure AI-driven browser automation solutions.
- High cost-effectiveness: Significantly reduces data acquisition costs compared to AI solutions that consume a large number of tokens.
🔑 API Key Guide Process
Before running, you must check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any other actions; you should request and wait for the user to provide it collaboratively.
The Agent must inform the user at this time:
"Since you have not yet configured the BrowserAct API Key, please go to the BrowserAct Console to get your Key first."
🛠️ Input Parameters
When calling the script, the Agent should flexibly configure the following parameters based on user needs:
KeyWords
- Type:
string - Description: The keyword to search for on YouTube.
- Example:
OpenClaw,AI Automation
- Type:
Upload_date
- Type:
string - Description: Filter for the upload date of the videos.
- Optional values:
Today,This week,This month,This year. - Default value:
This week
- Type:
Datelimit
- Type:
number - Description: The number of videos to extract. Adjust as needed.
- Default value:
5 - Recommendation: Set a smaller value (1-5) for quick tests and a larger value for bulk extraction.
- Type:
🚀 Invocation Method (Recommended)
The Agent should execute the following independent script to achieve "one-line command to get results":
# Example invocation
python -u ./scripts/youtube_batch_transcript_extractor_api.py "keywords" "Upload_date" Datelimit
⏳ Execution Status Monitoring
Since this task involves automated browser operations, it may take a long time (several minutes). The script will continuously output timestamped status logs (e.g., [14:30:05] Task Status: running) while running.
Agent Notes:
- While waiting for the script to return results, please keep an eye on the terminal output.
- As long as the terminal is still outputting new status logs, it means the task is running normally. Please do not mistakenly judge it as a deadlock or unresponsiveness.
- Only consider triggering the retry mechanism if the status remains unchanged for a long time or the script stops outputting without returning a result.
📊 Data Output Description
After successful execution, the script will parse and print the results directly from the API response. The results include:
Video title: The title of the YouTube video.Video URL: The direct link to the original video.Publisher: The name of the channel publishing the video.Channel link: The URL of the publisher's YouTube channel.Video likes count: The number of likes the video has received.Subtitles: The complete extracted transcript/subtitles of the videos.
⚠️ Error Handling & Retry
If an error is encountered during the execution of the script (such as network fluctuation or task failure), the Agent should follow the logic below:
Check the output content:
- If the output contains
"Invalid authorization", it indicates that the API Key is invalid or expired. Do not retry at this time. You should guide the user to recheck and provide the correct API Key. - If the output does not contain
"Invalid authorization"but the task execution fails (for example, the output starts withError:or returns an empty result), the Agent should automatically try to execute the script once more.
- If the output contains
Retry limits:
- Automatic retry is limited to once. If the second attempt still fails
常见问题
它为每个视频返回什么?
它返回完整字幕稿,以及点赞数和频道元数据。
它能处理视频列表吗?
描述中说明,它既能从搜索结果中提取字幕,也能为一组视频提取字幕。
我需要密钥吗?
需要。你需要在 BROWSERACT_API_KEY 设置中填写 BrowserAct API 密钥。
详情
作者的原始描述
This skill helps users automatically extract YouTube video transcripts and metadata in batch via the BrowserAct API. The Agent should proactively apply this skill when users express needs like batch extract full transcripts from YouTube videos for specific keywords, scrape YouTube subtitles for a list of videos, get batch video metadata and likes counts for analysis, automate YouTube search and subtitle extraction, collect multiple video transcripts published this week, download bulk YouTube video subtitles without writing crawler scripts, build a dataset of transcripts from top YouTube videos
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14335
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。