In 2026, content viralitiy depends on Low-Latency Relevance. If you are 24 hours late to a trend, you are irrelevant. In this lesson, we learn how to architect an autonomous discovery engine that grounds AI scripts in real-time Pakistani trends.
from pytrends.request import TrendReq
pytrends = TrendReq(hl='en-US', tz=360)
kw_list = ["Pakistan"]
# Get daily search trends
trending_searches_df = pytrends.trending_searches(pn='pakistan')
top_trends = trending_searches_df[0].tolist()[:5]
print(f"Active PK Trends: {top_trends}")
A trend is only useful if it has high "Sentiment Velocity." Our discovery engine scores trends based on upvotes and comments to determine if a topic is worth generating a full video for.
Build a Python script that pulls the top trend from Google Trends (PK) and outputs a JSON object containing: {trend_name, primary_reason, suggested_hook}.