Skip to content

A Flask web application for downloading YouTube videos from playlists or single video URLs, using the YouTube Data API and pytube library.

Notifications You must be signed in to change notification settings

MrAkshayAS/youtube-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Flask web application for downloading YouTube videos from playlists or single video URLs, using the YouTube Data API and pytube library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published