How geraldohomero/dh-youtube-database works
This is a research-oriented YouTube collection and analysis repository. The principal documented workflow updates configured channels, gathers video metadata, comments, and transcripts, persists them in SQLite, then supports channel-specific and cross-channel analysis. The graph also preserves transcript retrieval/cleanup and audio processing as distinct capabilities. Some analysis and audio scripts were read but their internal calls were not shown, so those branches are connected only where the README documents the relationship; unsampled wiring is omitted.
Main entry points: db SQLite research store · db_manager.py Database manager · youtube_client.py YouTube API client · toDatabase.py Ingestion runner
Components 21
Collection
- Annual update
canaisAtualizacaoAnual.py - Period update
periodo.py - Ingestion runner
toDatabase.py - YouTube API client
api/youtube_client.py - Runtime configuration
config.py
Enrichment
- Video processing
services/video_service.py - Transcript service
services/transcript_service.py - Transcript retrieval
data/transcriptions/transcript.py - Audio processing
audio/audioScript.py - Research data models
models/data_models.py
Persistence
- Database manager
database/db_manager.py - SQLite research store
db
Research analysis
- Channel analysis
pipeline/canalEspecifico.py - Transcript cleaning
pipeline/clean_transcripts.py - Topic analysis
pipeline/topic.py - Cross-channel topics
pipeline/topicTodosCanais.py - Database analysis
pipeline/getDataFromSQLite.py - Missing transcript export
export_missing_transcripts.py
Other components
- Researcher
- YouTube
- Transcript API
Connections 29
- Researcher → Annual update: starts update
README.md - Researcher → Ingestion runner: starts ingestion
README.md - Researcher → Channel analysis: starts analysis
README.md - Ingestion runner → Runtime configuration: reads channels
toDatabase.py - Ingestion runner → Database manager: checks existing IDs
toDatabase.py - Ingestion runner → Video processing: processes channels
toDatabase.py - Video processing → YouTube API client: fetches video data
services/video_service.py - Video processing → Transcript service: requests transcript
services/video_service.py - Video processing → Database manager: saves video comments
services/video_service.py - YouTube API client → YouTube: fetches metadata comments
README.md - YouTube API client → Runtime configuration: uses API keys
api/youtube_client.py - Transcript service → Transcript retrieval: retrieves transcript
services/transcript_service.py - Transcript retrieval → Transcript API: fetches transcript
README.md - Transcript service → Research data models: transcript data
- YouTube API client → Research data models: builds channel details
api/youtube_client.py - Database manager → Research data models: accepts research records
database/db_manager.py - Database manager → Runtime configuration: uses database path
database/db_manager.py - Database manager → SQLite research store: reads and writes
database/db_manager.py - Period update → Database manager: persists period results
README.md - Period update → YouTube API client: uses YouTube client
periodo.py - Period update → Transcript service: requests transcripts
periodo.py - Annual update → YouTube: updates channel data
- Channel analysis → SQLite research store: analyzes stored data
README.md - Transcript cleaning → SQLite research store: cleans transcript data
- Topic analysis → SQLite research store: analyzes research data
README.md - Cross-channel topics → SQLite research store: analyzes research data
README.md - Database analysis → SQLite research store: reads stored data
- Missing transcript export → SQLite research store: exports missing transcripts
- Audio processing → Transcript API: transcribes audio
README.md