
MyTherapist.ng - Online Therapy for Nigerians
Mytherapist.ng is a platform that connects individuals seeking mental health support with licensed and certified therapists.

A high-performance Python actor that monitors global YouTube trends in real time. Bypassing API limits to deliver viral insights from 25+ countries instantly.
In the modern digital economy, a trend can rise and fall in the span of hours. For content creators, marketers, and data analysts, identifying a viral video before it peaks is the difference between riding the wave and missing the boat.
However, accessing this data at scale is surprisingly difficult. The official YouTube API has strict quota limits that stifle high-frequency monitoring. On the other hand, scraping YouTube directly is a technical minefield—heavy JavaScript execution, complex DOM structures, and aggressive anti-bot measures make it slow and costly.
I built the YouTube Popular Channel Scraper to solve this. It is a high-performance, asynchronous data extraction tool designed to monitor YouTube trends across 25+ countries in real-time. By rethinking where and how we gather data, I created a solution that is 10x faster and significantly cheaper than traditional headless browser approaches.
When I started this project, I identified two main barriers to effective trend monitoring:
I needed a third option: a solution that was lightweight (no browser required), universal (works for any country), and resilient (low failure rate).
To achieve high throughput with minimal resources, I architected the solution using Python's AsyncIO ecosystem.
requests, httpx can fire off dozens of requests simultaneously without waiting for each to complete.Instead of a sequential loop, the scraper requests data efficiently. Here is a simplified view of the logic:
async with httpx.AsyncClient(follow_redirects=True) as client: # Construct the target URL dynamically based on country input base_url = "https://youtube.trends24.in" target_url = f"{base_url}/{country}/" if country != "world" else f"{base_url}/" # 30-second timeout ensures we don't hang on bad proxies response = await client.get(target_url, timeout=30) # Immediate parsing with lxml/html.parser soup = BeautifulSoup(response.text, 'html.parser')
This approach allows the scraper to process a country's entire trend dataset in usually under 2 seconds, compared to the 30-45 seconds it might take a Headless Browser to load, render, and scroll YouTube's heavy Angular/Polymer frontend.
The breakthrough for this project wasn't just in how I scraped, but what I scraped.
Directly scraping youtube.com/feed/trending is a cat-and-mouse game with Google's bot detection. However, I realized that for the specific use case of identifying trends, I didn't need to go to the source directly. I found that Trend Data Aggregators (like trends24.in) serve a lighter, server-side rendered version of the same data.
By targeting the aggregator instead of the source:
.video-card, .stat-line), unlike YouTube's obfuscated, dynamic class names (e.g., ytd-video-renderer.style-scope).This decision transformed the project from a heavy, fragile bot into a lightning-fast data tool.
The results of this architectural shift were immediate and quantifiable:
< 256MB of RAM, making it eligible for the lowest cost tier on most cloud providers.Users are currently using this tool to populate dashboard widgets, trigger Slack alerts for brand mentions, and analyze cross-country viral propagation.
While the current version is robust, I have plans to deepen its analytical capabilities:
NLTK or OpenAI API) to analyze the sentiment of trending video titles—are we seeing more positive or alarmist content trending today?The data behind viral content shouldn't be a black box. If you're looking to build data-driven content strategies or need a reliable pipeline for video analytics, this tool is the perfect starting point.

Mytherapist.ng is a platform that connects individuals seeking mental health support with licensed and certified therapists.

DALC, LLC specializes in equal employment opportunity, diversity and inclusion, human resources, and business consulting.

Your No.1 Solution for hostel accommodation. Application for Nigerian students to easily search for hostel accommodation.