A simple Python script to download music from Deezer via deemix — tracks, albums, artists and playlists in seconds.
- Python 3.8+
- deemix installed
- A Deezer account (free or Premium)
- Your Deezer ARL token (see below)
The ARL is a token that authenticates you with Deezer. It is required for deemix to work.
On Chrome / Firefox / Edge:
- Go to https://www.deezer.com and log in
- Open DevTools →
F12 - Go to the Application tab (Chrome) or Storage tab (Firefox)
- Click Cookies →
https://www.deezer.com - Find the cookie named
arland copy its value
Then paste it into deemix when prompted on first launch:
deemix --arl YOUR_ARL_TOKEN -b mp3_320 -p ./music "https://www.deezer.com/album/302127"💡 The ARL is saved automatically after the first use. You won't need to enter it again.
⚠️ Your ARL expires periodically. If downloads stop working, grab a fresh one.
# Install Python if needed
sudo apt install python3 python3-pip # Debian / Ubuntu
sudo pacman -S python python-pip # Arch
# Install deemix
pip install deemix- Download and install Python — check "Add Python to PATH" during install
- Open Command Prompt or PowerShell:
pip install deemix- Find the deemix path:
where deemix
# Example: C:\Users\youruser\AppData\Local\Programs\Python\Python311\Scripts\deemix.exe# Install Homebrew if needed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python
brew install python
# Install deemix
pip3 install deemixOpen download_music.py and edit the two variables at the top:
OUTPUT_DIR = "/home/youruser/music" # Folder where files will be saved
DEEMIX = "/home/youruser/.local/bin/deemix" # Path to the deemix executable| OS | Default deemix path |
|---|---|
| 🐧 Linux | /home/youruser/.local/bin/deemix |
| 🪟 Windows | C:\Users\youruser\AppData\Local\Programs\Python\Python311\Scripts\deemix.exe |
| 🍎 macOS | /usr/local/bin/deemix |
To find it automatically:
# Linux / macOS
which deemix
# Windows (PowerShell)
where deemix# Linux / macOS
python3 download_music.py
# Windows
python download_music.pyThen paste a Deezer link and press Enter:
🔗 Deezer link: https://www.deezer.com/album/302127
| Key | Action |
|---|---|
h |
Show help |
c |
Change audio quality |
q |
Quit |
| Type | Example |
|---|---|
| 🎵 Track | https://www.deezer.com/track/3135556 |
| 💿 Album | https://www.deezer.com/album/302127 |
| 🎤 Artist | https://www.deezer.com/artist/92 |
| 📋 Playlist | https://www.deezer.com/playlist/1963962142 |
| Quality | Requirement |
|---|---|
| MP3 128 kbps | Free account |
| MP3 320 kbps | Premium required |
| FLAC lossless | Premium required |
music/
└── Linkin Park/
└── Meteora/
├── 01 - Foreword.mp3
├── 02 - Don't Stay.mp3
└── ...
This project is for personal use only.
Please respect Deezer's terms of service and the copyright laws of your country.
This project is licensed under the MIT License.