Skip to content

This AI script is designed for users who wish to ask inquiries and extract information from youtube videos.

Notifications You must be signed in to change notification settings

ShayanAliProgrammar/youtube-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Youtube Transcript Q&A Assistant

You may use this Python script to create a useful AI Q&A assistant that answers questions based on YouTube video transcriptions. The langchain_google_genai and youtube_transcript_api libraries are used to retrieve transcripts and offer answers.

Features.

  • Get transcripts of YouTube videos from URLs.
  • Respond to customer inquiries and create video transcripts.

Installation

  1. Clone the repository:

    git clone https://github.com/ShayanAliProgrammar/youtube-ai.git
  2. Install the essential prerequisites.

    pip install langchain==0.1.12 langchain-google-genai==0.0.11 youtube-transcript-api==0.6.2

Usage

  1. Run this script:

    python main.py
  2. When asked, provide the URL to an allowed YouTube video.

  3. Submit your question to the helper here.

  4. Receive the response generated from the video transcription that was provided.

Example

Here's a sample usage of the script:

Enter a YouTube video URL from youtube.com only: https://www.youtube.com/watch?v=video_id

--------------------------------------------------------------------------------------------------------------------------

Prompt (q to quit): How does the AI assistant work?

Answer: The AI assistant retrieves the video transcript from the specified YouTube URL and generates responses depending on the transcript content.

--------------------------------------------------------------------------------------------------------------------------

Prompt (q to quit): q

About

This AI script is designed for users who wish to ask inquiries and extract information from youtube videos.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages