Stop manually transcribing videos. This Python script automates the extraction of text from YouTube channels, playlists, or individual videos, acting as a bridge between video content and textual data.
The script is designed for flexibility. It first attempts to download official subtitles (optimized for Arabic in the code, but customizable). If native subtitles aren't available, it downloads the audio track and sends it to the AssemblyAI API for high-accuracy speech-to-text transcription.
All data is saved into a clean, structured Excel file. Each row contains:
Downloads transcripts from YouTube videos for content repurposing, SEO optimization, and accessibility. Extracts both native subtitles and generates AI-powered transcriptions via AssemblyAI, saving everything to a structured Excel report.