This project is a web application that allows users to analyze YouTube video transcripts. It provides features such as transcript retrieval, summarization, and question answering based on the video content.
youtube_app/
├── backend/
│ ├── main.py
│ └── transcripts/
├── frontend/
│ ├── public/
│ ├── src/
│ └── package.json
├── .env
├── .gitignore
├── package.json
├── requirements.txt
└── README.md
git clone https://github.com/your-username/youtube_app.git
cd youtube_app
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
pip install -r requirements.txt
Note: This project requires Python 3.7 or higher.
.env file in the root directory and add the following:
OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
GOOGLE_API_KEY=your_google_api_key
You’ll need to obtain your own API keys from OpenAI, Anthropic, and Google to use their respective services.
cd frontend
npm install
cd backend
python main.py
The backend will run on http://localhost:5000.
cd frontend
npm start
The frontend will run on http://localhost:3000.
http://localhost:3000 to use the application.POST /api/transcript: Fetch a YouTube video transcriptPOST /api/summarize: Summarize a video transcriptPOST /api/answer: Answer a question based on a video transcriptGET /test: Test endpoint to verify the Flask app is runningContributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.