Skip to content

Python webapp for rapid extraction and analysis of YouTube content, enabling users to gain insights from videos and playlists without spending hours watching them.

License

Notifications You must be signed in to change notification settings

t-charura/yt-quick-insights

Repository files navigation

project-banner

YouTube Quick Insights is a Python webapp designed to help users rapidly extract insights from YouTube content. This application enables you to summarize videos, extract key information, and analyze entire playlists without spending hours watching them.

license last-commit repo-top-language PyPI - Version github-actions

About the ProjectInstallationUsageLimitationsKnown IssuesRoadmapContact


About the Project

With the overwhelming volume of content on YouTube, finding relevant information can be time-consuming and inefficient. YouTube Quick Insights solves this by instantly summarizing videos, extracting key information, and analyzing entire playlists. This AI-powered app saves time and enhances knowledge retention, making learning from YouTube content easier and more effective.

Key Features

  • 🎥 Video Insights: Extract relevant information from individual YouTube videos using various extraction methods.
  • ❓ Question-Based Insights: Ask specific questions about a video to get targeted information.
  • 📚 Playlist Analysis: Analyze each video in a playlist and generate a comprehensive summary of the playlist's content.
  • 🔧 Flexible Extraction Methods: Choose from pre-defined extraction methods or create custom ones to suit your needs.

Why it's valuable?

  • ⏱️ Time-Saving: Obtain critical information from videos without spending hours watching them.
  • 🎛️ Customizable Analysis: Tailor the extraction process to focus on specific aspects of the content.
  • 📈 Scalable: Effortlessly analyze individual videos or entire playlists.
  • 🧠 Enhanced Learning & Retention: Use generated summaries for personal notes to review content later, improving long-term retention.
  • 🖱️ Ease of Use: Simple and user-friendly web interface.

Build with

python-logo Python

langchain-logo LangChain

streamlit-logo Streamlit

Installation

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

insights --help

Usage

To launch the application, open your terminal and run the following command:

insights run

The webapp should open automatically in your default browser. If not, navigate to: http://localhost:8501.

usage_gif
  1. Enter YouTube URL: Paste the URL of the YouTube video you want to summarize in the designated field.
  2. Set OpenAI API Key: You have three options to provide your OpenAI API key:
    • Enter it directly in the designated field
    • Set it in the .env file
    • Store the key in an environment variable called: OPENAI_API_KEY
  3. Generate Insights: Click on the "Get Insights" button to start summarizing the video content.

(Optional Settings)

  1. Select Extraction Method: Choose a specific method for extracting information based on the video content, defaults to General Summary.
  2. Choose OpenAI Model: Select any available OpenAI model for generating insights, defaults to gpt-4o-mini.

For detailed usage instructions, please refer to the in-app Usage Guide. To set up a .env file or create a custom Extraction Method, navigate to the "Configuration" section in the app's navigation bar.

Limitations

  • Relies on the availability and accuracy of video transcripts.
  • Requires an OpenAI API key for operation.
  • May not capture visual information or context that isn't described in the audio.
  • Only OpenAI LLMs are supported at this time.

Known Issues

  • The YouTube transcript download feature does not work when using a VPN (tested with NordVPN).

Roadmap

  • Publish on PyPI
  • Transform the CLI into a web app
  • Deploy the web app (Simplify user experience: no need to install locally)
  • Implement parallelization for extracting insights from YouTube Playlists

Contact


If you find YouTube Quick Insights helpful, please consider giving it a ⭐️ on GitHub!

About

Python webapp for rapid extraction and analysis of YouTube content, enabling users to gain insights from videos and playlists without spending hours watching them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published