`ytsummarizer` is a Bash script that leverages AI to generate concise summaries of YouTube videos using their subtitles. This tool helps you quickly understand the content of videos without having to watch them in their entirety.
- AI-Powered Summarization: Uses OpenAI GPT models to summarize video content.
- Subtitle Extraction: Automatically extracts subtitles from YouTube videos.
- Simple to Use: Just provide the YouTube video link, and the script handles the rest.
- Open Source: Fully open source and free to use (except for the OpenAI credits)
Ensure you have the following installed:
- Bash
yt-dlp
(for downloading subtitles)jq
(for handling JSON)curl
(for API requests)
-
Clone the repository:
git clone https://github.com/wbunting/ytsummarizer.git cd ytsummarizer
-
Make the script executable:
chmod +x ytsummarizer
To use the OpenAI API, you need to set up your API key:
-
Create a configuration directory:
mkdir -p ~/.config/ytsummarizer
-
Save your OpenAI API key in a file:
echo "YOUR_OPENAI_API_KEY" > ~/.config/ytsummarizer/api_key
To summarize a YouTube video, run the script with the video URL as an argument:
./ytsummarizer <video_url>
Example:
./ytsummarizer https://www.youtube.com/watch?v=dQw4w9WgXcQ
- Bash
- yt-dlp
- jq
- curl
This project is licensed under the MIT License. See the LICENSE file for details.