Skip to content

nicktill/YTRecap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

YTRecap

YTRecap (https://ytrecap.org) is a web application that uses the YouTube Data API to retrieve the closed captions of a YouTube video, and then passes them to an AI model to generate a summary of the video content. The application is built using Python Flask

light mode

Screen Shot 2023-04-08 at 2 24 41 AM

dark mode

Screen Shot 2023-04-08 at 2 24 32 AM

demo

ytrecapgif.2.mov

Getting Started

To use the YT-Recap application, follow these steps:

  1. Clone the repository:

    git clone https://github.com/nicktill/YTRecap.git
    
  2. Set up virtual environment:

    cd yt-recap
    python3 -m venv venv
    source venv/bin/activate (macOS/Linux)
    venv\Scripts\activate (Windows)
    
  3. Install required packages:

    pip install -r requirements.txt
    
  4. Set up environment variables: Create a file named .env in the /src directory of the repo to store your YouTube API key and OpenAI API key. The structure should be as follows:

    YT_KEY='YOUR_YOUTUBE_API_KEY'
    OPENAI_KEY='YOUR_OPENAI_API_KEY'
    
  5. Run the application:

    cd src
    python3 app.py