jpskill.com
🛠️ 開発・MCP コミュニティ

youtube-batch-transcript-extractor-api-skill

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, extract YouTube video URLs and publisher info in batch, gather full video content for AI summarization pipelines, monitor recent YouTube videos and extract their transcripts, batch retrieve structured subtitle data for media research, extract transcripts from trending YouTube content automatically.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o youtube-batch-transcript-extractor-api-skill.zip https://jpskill.com/download/17638.zip && unzip -o youtube-batch-transcript-extractor-api-skill.zip && rm youtube-batch-transcript-extractor-api-skill.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17638.zip -OutFile "$d\youtube-batch-transcript-extractor-api-skill.zip"; Expand-Archive "$d\youtube-batch-transcript-extractor-api-skill.zip" -DestinationPath $d -Force; ri "$d\youtube-batch-transcript-extractor-api-skill.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して youtube-batch-transcript-extractor-api-skill.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → youtube-batch-transcript-extractor-api-skill フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

YouTube Batch Transcript Extractor API Skill

📖 はじめに

この Skill は、BrowserAct YouTube Batch Transcript Extractor API テンプレートを使用し、YouTube動画のトランスクリプトとメタデータをバッチで抽出するための自動化されたサービスをユーザーに提供します。検索キーワードとフィルターを指定するだけで、クローラーのスクリプトを作成することなく、動画の完全なトランスクリプト、いいね数、チャンネルのメタデータをバッチで抽出できます。

✨ 特徴

  1. ハルシネーションがなく、安定した正確なデータ抽出を保証: 事前に設定されたワークフローにより、生成AIによるハルシネーションを回避します。
  2. CAPTCHAの問題なし: reCAPTCHAやその他の認証チャレンジに対応する必要はありません。
  3. IPアクセス制限やジオフェンシングなし: 地域ごとのIP制限に対処する必要はありません。
  4. より高速な実行: 純粋なAI駆動のブラウザ自動化ソリューションと比較して、タスクの実行が高速です。
  5. 高い費用対効果: 大量のトークンを消費するAIソリューションと比較して、データ取得コストを大幅に削減します。

🔑 API Key ガイドプロセス

実行する前に、BROWSERACT_API_KEY 環境変数が設定されているか確認する必要があります。設定されていない場合は、他のアクションを実行せず、ユーザーに協調的に提供を要求し、待機する必要があります。 この時点で、Agentはユーザーに以下を通知する必要があります:

「BrowserAct API Keyがまだ設定されていないため、BrowserAct Console にアクセスして、まずKeyを取得してください。」

🛠️ 入力パラメータ

スクリプトを呼び出す際、Agentはユーザーのニーズに基づいて、以下のパラメータを柔軟に設定する必要があります。

  1. KeyWords

    • Type: string
    • Description: YouTubeで検索するキーワード。
    • Example: OpenClaw, AI Automation
  2. Upload_date

    • Type: string
    • Description: 動画のアップロード日によるフィルタ。
    • Optional values: Today, This week, This month, This year.
    • Default value: This week
  3. Datelimit

    • Type: number
    • Description: 抽出する動画の数。必要に応じて調整してください。
    • Default value: 5
    • Recommendation: クイックテストには小さい値(1〜5)を設定し、大量抽出には大きい値を設定します。

🚀 呼び出し方法 (推奨)

Agentは、以下の独立したスクリプトを実行して、「1行のコマンドで結果を取得」を実現する必要があります。

# Example invocation
python -u ./scripts/youtube_batch_transcript_extractor_api.py "keywords" "Upload_date" Datelimit

⏳ 実行状況の監視

このタスクは自動ブラウザ操作を伴うため、時間がかかる場合があります(数分)。スクリプトは実行中にタイムスタンプ付きのステータスログを継続的に出力します(例:[14:30:05] Task Status: running)。 Agentの注記:

  • スクリプトが結果を返すのを待つ間、ターミナル出力を監視してください。
  • ターミナルが新しいステータスログを出力し続けている限り、タスクは正常に実行されています。デッドロックまたは無応答と誤って判断しないでください。
  • ステータスが長時間変化しない場合、またはスクリプトが出力を停止して結果を返さない場合にのみ、再試行メカニズムのトリガーを検討してください。

📊 データ出力の説明

正常に実行されると、スクリプトはAPIレスポンスから直接結果を解析して出力します。結果には以下が含まれます。

  • Video title: YouTube動画のタイトル。
  • Video URL: 元の動画への直接リンク。
  • Publisher: 動画を公開しているチャンネルの名前。
  • Channel link: パブリッシャーのYouTubeチャンネルのURL。
  • Video likes count: 動画が受け取った「いいね」の数。
  • Subtitles: 動画から抽出された完全なトランスクリプト/字幕。

⚠️ エラー処理と再試行

スクリプトの実行中にエラーが発生した場合(ネットワークの変動やタスクの失敗など)、Agentは以下のロジックに従う必要があります。

  1. 出力内容の確認:

    • 出力に"Invalid authorization"含まれている場合、API Keyが無効であるか期限切れであることを示します。この時点で再試行しないでください。ユーザーに再確認して正しいAPI Keyを提供するように指示する必要があります。
    • 出力に"Invalid authorization"含まれていないが、タスクの実行が失敗した場合(たとえば、出力がError:で始まるか、空の結果を返す場合)、Agentは自動的にスクリプトをもう一度実行する必要があります
  2. 再試行制限:

    • 自動再試行は1回に制限されています。2回目の試行でも失敗した場合は、再試行を停止し、特定のエラーメッセージをユーザーに報告してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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

  1. No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid generative AI hallucinations.
  2. No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP access restrictions or geofencing: No need to deal with regional IP restrictions.
  4. Faster execution: Tasks execute faster compared to pure AI-driven browser automation solutions.
  5. 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:

  1. KeyWords

    • Type: string
    • Description: The keyword to search for on YouTube.
    • Example: OpenClaw, AI Automation
  2. 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
  3. 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.

🚀 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:

  1. 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 with Error: or returns an empty result), the Agent should automatically try to execute the script once more.
  2. Retry limits:

    • Automatic retry is limited to once. If the second attempt still fails, stop retrying and report the specific error message to the user.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。