This project provides a simple Flask-based API to extract audio from YouTube videos using yt-dlp. It serves a web interface where users can input a YouTube URL and download the extracted audio in MP3 format. 🚀
- Extracts high-quality audio 🎵 from YouTube videos.
- Returns the extracted audio as an MP3 file. 🎧
- Simple web interface built with Flask. 🌐
- Efficient audio extraction using
yt-dlp. ⚡
├── api
│ └── main.py # Main Flask app
├── static # Folder to store extracted audio
├── templates
│ └── index.html # HTML for the web interface
└── README.md # Project documentationMake sure you have the following installed:
- 🐍 Python 3.x
- 📦 Flask (
pip install Flask) - 🎬 yt-dlp (
pip install yt-dlp) - 🎛️ FFmpeg (for audio extraction)
-
Clone the repository:
git clone https://github.com/your-repo/youtube-audio-extractor.git cd youtube-audio-extractor -
To install the required Python packages, run the following command:
pip install -r requirements.txt
-
Run the following command to start the Flask app:
python api/main.py
- Once the app is running, open your browser and go to:
http://127.0.0.1:5000
- Endpoint: /extract_audio
- Method: POST