Multi-Platform Audio Downloader
A high-speed, multi-threaded script to convert Spotify, YouTube, and YouTube Music links into high-quality MP3 files using yt-dlp.
Features
- Fast: Concurrent downloads using multiple threads.
- Versatile: Supports Spotify, YouTube, and YouTube Music links.
- Easy: No API keys or developer accounts required.
- Convenient: Handles multiple links at once.
Prerequisites
- Python 3.8+
- FFmpeg: Required for MP3 conversion.
- Windows: Download here, extract
ffmpeg.exeandffprobe.exe, and add their folder to your system PATH. - macOS:
brew install ffmpeg - Linux:
sudo apt install ffmpeg
- Windows: Download here, extract
Installation
- Clone the repository or download the script.
- Install dependencies:
pip install -r requirements.txt
Usage
Run the script followed by one or more track links:
# Spotify
python spotify_to_mp3.py "https://open.spotify.com/track/..."
# YouTube
python spotify_to_mp3.py "https://www.youtube.com/watch?v=..."
# YouTube Music
python spotify_to_mp3.py "https://music.youtube.com/watch?v=..."
# Multiple links
python spotify_to_mp3.py "LINK_1" "LINK_2" "LINK_3"
Options
-o,--output: Specify output directory (Default: current directory).-w,--workers: Number of concurrent downloads (Default: 4).
python spotify_to_mp3.py "link1" "link2" -o ./downloads -w 8
Disclaimer
This tool is for educational purposes only. Please respect the artists and terms of service of the platforms involved.