Install
openclaw skills install youtube-batch-transcript-extractor-api-skillThis skill helps users automatically extract YouTube video transcripts and metadata in batch via the BrowserAct API. The Agent should proactively apply this...
openclaw skills install youtube-batch-transcript-extractor-api-skillThis 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.
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."
When calling the script, the Agent should flexibly configure the following parameters based on user needs:
KeyWords
stringOpenClaw, AI AutomationUpload_date
stringToday, This week, This month, This year.This weekDatelimit
number5The 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
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:
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.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:
"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."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.Retry limits: