A Flask application to download YouTube videos as MP3 files with real-time progress updates.
This project allows users to download YouTube videos as MP3 files by providing a link. The download progress is displayed in real-time using Server-Sent Events (SSE).
- Download YouTube videos as MP3 files.
- Real-time progress updates.
- Simple and intuitive user interface.
- Uses Flask for the web framework.
To run this application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/youtube-to-mp3-downloader.git cd youtube-to-mp3-downloader
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Set the Flask secret key (optional):
export FLASK_SECRET_KEY='your_secret_key' # On Windows use `set FLASK_SECRET_KEY=your_secret_key`
-
Run the application:
flask run
- Open your web browser and navigate to
http://127.0.0.1:5000
. - Enter the YouTube video URL in the provided input field and submit.
- The download will start and you will see real-time progress updates.
- Once the download is complete, a link to download the MP3 file will be provided.
- Python
- Flask
- yt-dlp
- HTML
- CSS (Bootstrap)
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or suggestions, feel free to reach out:
- GitHub: bennie-benjah
- Email: [email protected]