How narenderthakur86/youtube-trend-analyzer works
AI Niche Trend Analyzer is a Streamlit application for finding recent YouTube videos that outperform their channels and summarizing trends for creators. The user supplies API keys and search parameters, then the app fetches video and channel statistics, calculates and filters outlier scores, requests an AI report, and displays the report and video details. The graph separates UI, YouTube data retrieval and scoring, and AI analysis. Relationships are based on the shown app and service excerpts; no persistent store is present.
Main entry points: app.py Streamlit workflow · youtube_service.py Video discovery and scoring · openai_service.py Trend report generation
Components 6
Search and Results UI
- Streamlit workflow
app.py
YouTube Discovery
- Video discovery and scoring
youtube_service.py - YouTube Data API
AI Trend Analysis
- Trend report generation
openai_service.py - OpenAI API
Other components
- Creator
Connections 8
- Creator → Streamlit workflow: sets search
app.py - Streamlit workflow → Video discovery and scoring: requests videos
app.py - Video discovery and scoring → YouTube Data API: searches and fetches stats
youtube_service.py - Video discovery and scoring → Streamlit workflow: returns scored data
app.py - Streamlit workflow → Trend report generation: requests analysis
app.py - Trend report generation → OpenAI API: requests completion
openai_service.py - Trend report generation → Streamlit workflow: returns report
app.py - Streamlit workflow → Creator: displays results
app.py