GPTube CLI is a command-line tool for generating video summaries based on transcripts from YouTube videos. The program extracts the video's closed captions, processes them using GPT-3 from OpenAI, and creates a summary of the video.
- ⬇️ Retrieves video data and captions from YouTube videos
- 🤖 Utilizes OpenAI's GPT-3 for generating video summaries
- ✍️ Offers post-processing functionality
- 📃 Supports reading a list of video URLs for processing
Paste this in your command line to install both precompiled binaries from github straight into your /usr/local/bin/
sudo wget -q https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp && sudo wget https://github.com/tragdate/gptube-cli/releases/latest/download/gptube-cli -O /usr/local/bin/gptube-cli && sudo chmod a+rx /usr/local/bin/gptube-cli
You can compile the program from source using cargo
git clone https://github.com/tragdate/gptube-cli
cd gptube-cli
cargo build --release
sudo cp target/release/gptube-cli /usr/local/bin/
gptube-cli [FLAGS] [OPTIONS]
-d
,--debug
- Prints additional debugging information
-p
,--post_process
- Post-processing functionality. Prompts for input on how to further process the generated summary
-c
,--config
- Create a configuration file if not already available
-u
,--url
- Provide a single YouTube video URL. Conflicts with
--url_list
and--config
- Provide a single YouTube video URL. Conflicts with
-l
,--url_list
- Provide a path to a file containing a list of YouTube video URLs separated by commas.
cat video-list.txt
https://www.youtube.com/watch?v=VIDEO_ID,
https://www.youtube.com/watch?v=VIDEO_ID,
https://www.youtube.com/watch?v=VIDEO_ID
Create a configuration file, or update the existing one:
gptube-cli --config
Generate a summary for a single video:
gptube-cli -u 'https://www.youtube.com/watch?v=VIDEO_ID'
Generate summaries for multiple videos from a list in a file:
gptube-cli -l 'video-list.txt'
Enable post-processing for generated summaries:
gptube-cli -u 'https://www.youtube.com/watch?v=VIDEO_ID' -p
Enable debug mode:
gptube-cli -u 'https://www.youtube.com/watch?v=VIDEO_ID' -d
This project is licensed under the GPLv3