CLI tool designed to extract meaningful insights from YouTube videos without watching them.
MIT License
YouTube Quick Insights is a CLI tool designed to extract meaningful insights from YouTube videos without watching them. Download the YouTube transcript, integrate it into a ready-to-use prompt, and use it with your favorite LLM.
Recommended: Create and activate a virtual environment before installing the tool.
Using pip
pip install yt-quick-insights
Using poetry
poetry add yt-quick-insights
To verify that everything works and to see all available commands
insights --help
Download the prompt in txt format in your current working directory.
insights download https://www.youtube.com/watch?v=VIDEO_ID
Customize the prompt to your needs with different tasks by using the -t
flag.
To see all available tasks run: insights available-tasks
Additional you can add background information for the video by using the -b
flag. Example:
insights download https://www.youtube.com/watch?v=VIDEO_ID -t podcast_summary -b "In this podcast episode 4 guests and a moderator talk about the future of AI."
Create a yaml file in your home directory under ~/.insights/task_details.yml
.
custom: |
Create your own custom task here.
You can use multiple lines to describe your task.
default: |
If you add a task name
that already exists in the default tasks,
it will be overwritten.
Not sure where to create the yaml file in your system?
insights yaml-location
You can use your custom task by running the download command with the -t
option
insights download https://www.youtube.com/watch?v=VIDEO_ID -t custom
To see all currently available tasks
insights available-tasks