A YouTube downloader application built with Python and Flask. Users can download YouTube videos in MP4 format or extract the audio in MP3 format directly through a simple web interface.
- Download videos in MP4 format
- Download audio in MP3 format
- User-friendly web interface
- Error handling for invalid YouTube links
- Change video resolution
- Python 3.x: Programming language for the backend logic
- Flask: Web framework for creating the server and routing
- pytube/pytubefix: Library to handle video downloads from YouTube
- Python 3.x
- Pip
- Open the terminal and navigate to the project directory
- Install the required dependencies:
pip install -r requirements.txt - Start the Flask server:
python3 app.py - Open a web browser and go to http://127.0.0.1:5000
-
Open the terminal and navigate to the project directory
-
Create a virtual environment:
python3 -m venv venv -
For macOS/Linux users, activate the virtual environment:
source .venv/bin/activate.For Windows users, activate the virtual environment:
.venv\Scripts\activate -
Install the required dependencies:
pip install -r requirements.txt -
Start the Flask server:
python3 app.py -
Open a web browser and go to http://127.0.0.1:5000