A terminal‑based tool to summarize YouTube videos using AI-powered transcription and summarization. Paste a YouTube URL, let the tool fetch the transcript, and get a clean, concise summary.
- Transcript Fetching: Extracts video subtitles via YouTube APIs or
youtube-dl. - AI Summarization: Sends the transcript to OpenAI (ChatGPT, GPT‑3, etc.) to generate a summary.
- CLI Experience: Run it locally in your terminal — no GUI needed.
- Configurable: Choose your summary length, temperature, and API keys.
-
Clone this repo:
git clone https://github.com/gopireddy99/Youtube_Video_Summarizer.git cd Youtube_Video_Summarizer -
Install dependencies:
pip install -r requirements.txt
-
Add OpenAI API key: export OPENAI_API_KEY="your_api_key_here" (Or add to .env if using python-dotenv.)
-
(Optional) Install youtube-dl or yt-dlp for transcript retrieval: pip install yt-dlp
python summarize.py https://www.youtube.com/watch?v=VIDEO_
Python 3.7+
OpenAI API key
Internet access
yt-dlp or youtube-transcript-api (for transcript extraction)
Transcript not found: Video may lack captions.
API errors: Check OPENAI_API_KEY, account limits.
Rate limits: Large transcripts may need chunking.
Unicode issues: Use Python 3 and utf-8 encoding.
MIT License
Contributions welcome — feel free to open issues or PRs for bugs, feature requests, or improvements!