본문으로 건너뛰기
Skillpedia
웹 스크레이핑6.3k · #14337

youtube-comments-api-skill

하는 일

이 스킬은 YouTube 검색 결과의 영상과 각 영상의 댓글을 함께 추출합니다. 한 주제에 대한 시청자 의견을 이해하려는 연구자와 마케터를 위한 스킬입니다.

사용하는 경우

  • ✓한 주제의 영상에 대한 시청자 반응을 읽고 싶을 때.
  • ✓한 키워드의 상위 영상 댓글이 필요할 때.
  • ✓제품이나 트렌드에 대한 시청자 의견을 모을 때.

스킬 링크

https://github.com/browser-act/skills/blob/main/solutions/video-platforms/youtube-comments-api-skill/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/browser-act/skills/blob/main/solutions/video-platforms/youtube-comments-api-skill/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“AI 노트 앱에 관한 상위 YouTube 영상을 찾아서 영상마다 댓글 100개씩 모아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 검색 키워드, 댓글 제한 수, 스크롤 횟수를 BrowserAct 템플릿에 보냅니다. 템플릿이 영상을 찾고 열어서, 영상 세부 정보와 댓글을 함께 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

YouTube Comments API Automation Skill

📖 Introduction

This skill provides a one-stop extraction service for YouTube video and comment data through the BrowserAct YouTube Comments API template. It can extract structured video results along with their respective comments directly from YouTube. By simply providing search keywords, comment limits, and scroll counts, you can acquire clean and ready-to-use video and comment datasets directly.

✨ Features

  1. Zero Hallucination, Ensuring Stable and Accurate Data Extraction: Pre-configured workflows avoid AI generative hallucinations.
  2. No CAPTCHA Issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP Access Restrictions or Geo-fencing: No need to deal with regional IP limits.
  4. More Agile Execution Speed: Faster task execution compared to pure AI-driven browser automation solutions.
  5. Extremely High Cost-Efficiency: Significantly reduces data acquisition costs compared to AI solutions that consume a large number of tokens.

🔑 API Key Guidance Process

Before running, you must first 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. At this point, the Agent must inform the user:

"Since you have not configured the BrowserAct API Key yet, please go to the BrowserAct Console first to get your Key."

🛠️ Input Parameters

When invoking the script, the Agent should flexibly configure the following parameters based on user needs:

  1. keywords

    • Type: string
    • Description: Search keywords used to find videos on YouTube. Can be any keyword or phrase.
    • Example: AI, automation, web scraping
    • Default: AI
  2. Comments_limit

    • Type: number
    • Description: Maximum number of comments to extract per video.
    • Example: 10, 20, 50
    • Default: 10
  3. Scroll_count

    • Type: number
    • Description: Number of times to scroll in the comments section to load more comments before extraction.
    • Example: 1, 2, 5, 10
    • Default: 2

🚀 Invocation Method (Recommended)

The Agent should execute the following standalone script to achieve "one command, get results":

# Example invocation
python -u ./scripts/youtube_comments_api.py "keywords" "Comments_limit" "Scroll_count"

⏳ Running Status Monitoring

Since this task involves automated browser operations, it may take a long time (several minutes). While running, the script will continuously output timestamped status logs (e.g., [14:30:05] Task Status: running). Agent Instructions:

  • While waiting for the script to return a result, please keep monitoring the terminal output.
  • As long as the terminal is still outputting new status logs, it means the task is running normally. Do not misjudge it as a deadlock or unresponsiveness.
  • Only if the status remains unchanged for a long time or the script stops outputting without returning a result, should you consider triggering the retry mechanism.

📊 Data Output Description

Upon successful execution, the script will directly parse and print the results from the API response. The results include two linked datasets:

Video fields:

  • video_name: Video title shown in the list
  • video_url: Video URL
  • video_publication_time: Published time
  • video_view_count: View count

Comment fields:

  • commenter_name: Comment author display name
  • commenter_url: Comment author channel URL
  • comment_text: Comment content
  • comment_publish_date: Comment publish time
  • comment_likes: Like count for the comment
  • reply_count: Number of replies

⚠️ Error Handling & Retry

During the execution of the script, if an error occurs (such as network fluctuations or task failure), the Agent should follow this logic:

  1. Check the Output Content:

    • If the output contains "Invalid authorization", it means the API Key is invalid or expired. At this time, do not retry; you should guide the user to recheck and provide the correct API Key.
    • If the output does not contain "Invalid authorization" but the task fails (e.g., the output starts with Error: or returns an empty result), the Agent should automatically try to execute the script one more time.
  2. Retry Limit:

    • Automatic retries are limited to **one time
자주 묻는 질문

댓글 수를 제한할 수 있나요?

네, 스킬을 실행할 때 댓글 제한 수를 정합니다.

무엇을 돌려주나요?

영상 결과와 각 영상의 댓글을 돌려줍니다.

키가 필요한가요?

네, BROWSERACT_API_KEY 설정에 BrowserAct API 키가 필요합니다.

상세 정보

작성자의 원본 설명

This skill helps users extract structured video list data and comment data from YouTube using the BrowserAct API. The Agent should proactively apply this skill when users request searching for YouTube videos and their comments, analyzing viewer sentiment for a specific video topic, gathering audience feedback on AI or automation, extracting a list of top videos and their viewer reactions, compiling YouTube video data along with user opinions, retrieving competitor video titles and related audience discussions, monitoring public response to specific YouTube search keywords, summarizing comments

repo: browser-act/skills

인기도

GitHub 스타
6.3k
순위
#14337
라이선스
MIT
업데이트
2026. 8. 24.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬