Skip to content

About

Take a youtube link and generate a report or a summary

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

YouTube Video Analysis Tool 🎥

An AI-powered tool that analyzes YouTube videos by examining their transcripts and comments to provide either detailed reports or concise summaries.

Features ✨

  • 📝 Video transcript extraction (using official captions or Whisper for audio transcription)
  • 💬 Comment analysis and filtering
  • 📊 Two analysis types:
    • Detailed Report: Comprehensive analysis of video content and reception
    • Concise Summary: Key points and main takeaways
  • 🤖 AI-powered analysis using CrewAI
  • 🔍 Spam comment detection and filtering

Prerequisites 📋

Before you begin, ensure you have the following installed:

  • Python 3.9 or higher
  • FFmpeg (required for Whisper audio transcription)
  • Git

Installing FFmpeg

Ubuntu

sudo apt update
sudo apt install ffmpeg

Windows

  1. Download FFmpeg from the official website: https://ffmpeg.org/download.html
  2. Extract the downloaded archive
  3. Add the FFmpeg bin folder to your system's PATH environment variable

Installation 🚀

  1. Clone the repository:
git clone https://github.com/yourusername/youtube_agent.git
cd youtube_agent
  1. Create and activate a virtual environment:

Ubuntu

python -m venv venv
source venv/bin/activate

Windows

python -m venv venv
venv\Scripts\activate
  1. Install the required packages:
pip install -r requirements.txt
  1. Set up environment variables:
cp .env.example .env

Edit the .env file and add your API keys:

Usage 🎮

  1. Activate the virtual environment (if not already activated):

Ubuntu

source venv/bin/activate

Windows

venv\Scripts\activate
  1. Run the analysis tool:
python main.py
  1. Follow the prompts:

    • Enter a YouTube video URL
    • Choose analysis type (1 for Detailed Report, 2 for Concise Summary)
  2. The tool will:

    • Extract the video transcript
    • Collect and analyze comments
    • Generate an AI analysis based on your chosen type
    • Save the analysis to the docs directory

Output 📄

Analysis results are saved in the docs directory:

  • Reports: docs/report/YYYYMMDD_HHMMSS.md
  • Summaries: docs/summary/YYYYMMDD_HHMMSS.md

License 📜

MIT License

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request.

About

Take a youtube link and generate a report or a summary

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages