YouTube Channel Scraper

    by Francisco Monteiro dos Santos

    1

    Automated YouTube scraper and analyzer that ranks channels by view-to-subscriber engagement rates.

    Free

    Security scanned

    Works with the AI Agents you already use

    YouTube Channel Scraper

    Example session with this skill installed

    I need to compare the engagement of these three YouTube channels: mkbhd, veritasium, and CGPlay. Run the scraper and show me who has the best views-to-subscriber ratio.

    • Read your context and instructions
    • Compiled the youtube channel scraper

    I ran the YouTube Channel Scraper on the three channels and analyzed the results with pandas.

    Summary: mkbhd has the highest engagement rate (total lifetime views per subscriber) at about 275.9, followed by veritasium at 223.1 and CGPlay at 36.8. mkbhd and veritasium both have 21.5M subscribers, so the gap comes from total views: mkbhd has about 1.1 billion more.

    YouTube Channel Engagement Ranking

    ChannelSubscribersTotal viewsEngagement rate (views/sub)
    mkbhd21,500,0005,931,903,670275.90
    veritasium21,500,0004,797,187,584223.13
    CGPlay130,0004,779,73236.77

    Note: Counts were collected from each channel's public About page in November 2026. YouTube rounds subscriber counts (e.g. 21.5M), so rates are approximate. Engagement rate is total lifetime views divided by subscribers.

    Raw data saved to youtube_data.json:

    [
      {
        "channel": "mkbhd",
        "lang": "en",
        "subscribers_text": "21.5M subscribers",
        "views_text": "5,931,903,670 views"
      },
      {
        "channel": "veritasium",
        "lang": "en",
        "subscribers_text": "21.5M subscribers",
        "views_text": "4,797,187,584 views"
      },
      {
        "channel": "CGPlay",
        "lang": "en",
        "subscribers_text": "130K subscribers",
        "views_text": "4,779,732 views"
      }
    ]
    

    Next steps

    1. Open engagement_chart.png in the project folder to see the bar chart comparison.
    2. If any value comes back as null, re-run with --dump-texts texts.txt to check whether YouTube's layout changed.
    3. Run python scripts/analise.py --show to view the chart in an interactive window.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Comparing YouTube creators or scouting competitors usually involves tedious manual data entry from multiple About pages. This skill automates the extraction of subscriber counts and lifetime views for a list of handles, calculating a comparative engagement metric.

    What it does

    • Automated scraping visits YouTube About pages via Selenium to extract raw subscriber and view counts.
    • Metric calculation computes an engagement rate defined as total views per subscriber to benchmark channel efficiency.
    • Data persistence saves raw scraped results into structured JSON files for audit or reuse.
    • Visual reporting generates sorted tables and PNG bar charts using pandas and matplotlib.
    • Language fallback handles both English and Portuguese YouTube interfaces automatically during extraction.

    How it works

    1. Extraction Run scripts/automacao.py with a list of channel handles to trigger the Selenium Chrome driver.
    2. Review Inspect the generated JSON output to ensure no null values were returned due to hidden counts.
    3. Analysis Run scripts/analise.py to process the JSON and generate the engagement ranking.
    4. Visualization Output a bar chart to PNG for inclusion in reports or presentations.

    Frameworks & tools

    Python 3.10, Selenium, Google Chrome, pandas, and matplotlib.

    Why this beats prompting it yourself

    Standard LLMs rely on stale training data for channel metrics. This tool pulls live data directly from the DOM, ensuring your benchmarks reflect current subscriber tiers and view counts.

    Use cases

    • Competitor benchmarking Compare a set of rival channels to see who converts views to subscribers most effectively.
    • Influencer vetting Validate public metrics for a list of potential brand partners before outreach.
    • Market research Track growth trajectories or saturation in specific niches by logging data over time.

    Known limitations

    Dependent on YouTube layout stability. Only extracts subscribers and total views. Requires local Chrome installation and may be interrupted by cookie consent prompts in certain regions.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    • Free with an Agensi account

    Accounts
    Youtube
    Software
    Python 3.10+Google Chrome

    Run pip install -r requirements.txt first. Needs internet and Google Chrome; a Chrome window opens while collecting, so don't close it. Depends on YouTube's layout and may need updates. You are responsible for following YouTube's Terms of Service.

    Permissions

    Terminal / Shell
    Browser
    Read Files
    Write Files
    Network Access

    Allowed Hosts

    youtube.com

    File Scopes

    youtube_data.json
    engagement_chart.png
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    Language models only know what was in their training data, which may be outdated. This skill collects the current subscriber and total view counts from YouTube when you run it, for several channels at once, and then ranks them and draws a chart automatically, so you don't have to look up and calculate each channel by hand.

    SKILL.md (instructions for your AI agent), the Selenium scraper script, the pandas analysis script that ranks channels and saves a bar chart, and a requirements.txt. You pass the channel handles on the command line; there is no config file.

    Yes. The language of the channel's videos doesn't matter, only the language YouTube is displayed in. The script asks Chrome for English YouTube by default (or Portuguese with --lang pt) and automatically tries the other one if needed. Other interface languages are not supported.

    Yes: Python 3.10 or newer and Google Chrome, plus an internet connection. Run pip install -r requirements.txt once to install the libraries. Your AI agent also needs permission to run shell commands.

    Not guaranteed. The script reads YouTube's public pages, so a layout change can make values come back as null. If that happens, run it with --dump-texts texts.txt to see what the script found on the page. Use it in line with YouTube's Terms of Service.

    No. It only collects the channel's subscriber count and total views from its About page, then ranks channels by views per subscriber. It does not collect video titles, likes, or comments.

    New in Research & Analysis

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.

    Free