https://github.com/rivalcoder/audioextract-from-youtube-url
Youtube Video Audio Extract Using Python By Url
https://github.com/rivalcoder/audioextract-from-youtube-url
flask yt-dlp
Last synced: about 1 month ago
JSON representation
Youtube Video Audio Extract Using Python By Url
- Host: GitHub
- URL: https://github.com/rivalcoder/audioextract-from-youtube-url
- Owner: Rivalcoder
- Created: 2024-12-13T09:58:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T03:42:12.000Z (over 1 year ago)
- Last Synced: 2025-10-06T12:50:02.226Z (9 months ago)
- Topics: flask, yt-dlp
- Language: Python
- Homepage:
- Size: 5.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 🎶 YouTube Audio Extractor API
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. 🚀
## 🛠️ Features
- 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`. ⚡
## 📂 Project Structure
```bash
├── api
│ └── main.py # Main Flask app
├── static # Folder to store extracted audio
├── templates
│ └── index.html # HTML for the web interface
└── README.md # Project documentation
```
## 🚀 Getting Started
### 1️⃣ Prerequisites
Make sure you have the following installed:
- 🐍 Python 3.x
- 📦 Flask (`pip install Flask`)
- 🎬 yt-dlp (`pip install yt-dlp`)
- 🎛️ FFmpeg (for audio extraction)
### 2️⃣ Running the Application
1. Clone the repository:
```bash
git clone https://github.com/your-repo/youtube-audio-extractor.git
cd youtube-audio-extractor
2. To install the required Python packages, run the following command:
```bash
pip install -r requirements.txt
```
### 3️⃣ Start the Flask Application
1. Run the following command to start the Flask app:
```bash
python api/main.py
### 4️⃣ Open in Browser
- Once the app is running, open your browser and go to:
```bash
http://127.0.0.1:5000
### 5️⃣ Using the API
- Endpoint: /extract_audio
- Method: POST