Skip to content

Latest commit

 

History

History
54 lines (48 loc) · 1.26 KB

README.md

File metadata and controls

54 lines (48 loc) · 1.26 KB

Project Structure

Assuming your Flask project structure will look like this:

project-root/
│
├── static/
│   └── (static files like CSS, JS, etc.)
│
├── templates/
│   ├── partials
│   │  ├── _header.html
│   │  └── _footer.html
│   ├── home.html # For Playlist Download 
│   └── single_video.html # Single Video Download
│
├── app.py
├── requirements.txt
└── README.md

Step-by-Step Setup

1. Environment Setup

Make sure you have Python installed. You can create a virtual environment for this project to manage dependencies cleanly:

python -m venv venv

2. Install Dependencies

flask==3.0.1
google-api-python-client
gunicorn
waitress # For production deployment on Windows

3.Install Dependencies

Install the required Python packages using pip and the requirements.txt file.

pip install -r requirements.txt

4. API Keys

Ensure you have a Google API key with YouTube Data API v3 enabled. Set it as an environment variable:

For Windows

$env:GOOGLE_API_KEY="your_api_key_here"

For Unix/Linux/MacOS:

export GOOGLE_API_KEY="your_api_key_here"

Replace "your_api_key_here" with your actual API key.