Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎶 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

├── 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:

    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:

    pip install -r requirements.txt

3️⃣ Start the Flask Application

  1. Run the following command to start the Flask app:

    python api/main.py
    

4️⃣ Open in Browser

  • Once the app is running, open your browser and go to:
    http://127.0.0.1:5000
    

5️⃣ Using the API

- Endpoint: /extract_audio

- Method: POST

About

Youtube Video Audio Extract Using Python By Url

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages