# YouTube Channel Scraper

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

YouTube Channel Scraper is a free AI agent skill on Agensi by Francisco Monteiro dos Santos, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Francisco Monteiro dos Santos](https://www.agensi.io/creators/dev-fsantos)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/youtube-channel-scraper
- Tags: research, social-media, database, python, selenium, pandas, data-analysis

## 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.

## Requires

- 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.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the YouTube Channel Scraper skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an AI agent for channel statistics?

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.

### What specific files and assets are included in this purchase?

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.

### Does it work with channels that publish in other languages?

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.

### Do I need any specific software installed on my machine to run this agent skill?

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.

### What happens if YouTube changes its website layout?

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.

### Can I use this to scrape individual video titles or comments from a channel?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
