Get Spotify tracks in true FLAC from Tidal, Qobuz & Amazon Music — no account required.
Project description
SpotiFLAC Python Module
Integrate SpotiFLAC directly into your Python projects. Perfect for building custom Telegram bots, automation tools, bulk downloaders, jellyfin downloader musics or web interfaces.
Looking for a standalone app?
SpotiFLAC (Desktop)
Download music in true lossless FLAC from Tidal, Qobuz & Amazon Music for Windows, macOS & Linux
SpotiFLAC (Mobile)
SpotiFLAC for Android & iOS — maintained by @zarzet
Installation
pip install SpotiFLAC
Quick Start
Import the module and start downloading immediately:
from SpotiFLAC import SpotiFLAC
# Simple Download
SpotiFLAC(
url="https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
output_dir="./downloads"
)
New use:
> spotiflac url ./out --service tidal spoti --use-artist-subfolders
Advanced Configuration
You can customize the download behavior, prioritize specific streaming services, and organize your files automatically into folders.
from SpotiFLAC import SpotiFLAC
SpotiFLAC(
url="https://open.spotify.com/album/41MnTivkwTO3UUJ8DrqEJJ",
output_dir="./MusicLibrary",
services=["qobuz", "amazon", "tidal", "spoti", "youtube"],
filename_format="{year} - {album}/{track}. {title}",
use_artist_subfolders=True,
use_album_subfolders=True,
loop=60 # Retry duration in minutes
)
CLI program usage
Program can be downloaded for Windows, Linux (x86 and ARM) and MacOS. The downloads are available under the releases.
Program can also be ran by downloading the python files and calling python launcher.py with the arguments.
Windows example usage:
./SpotiFLAC-Windows.exe url
output_dir
[--service tidal qobuz spoti youtube amazon]
[--filename-format "{title} - {artist}"]
[--use-track-numbers] [--use-artist-subfolders]
[--use-album-subfolders]
[--loop minutes]
Linux / Mac example usage:
chmod +x SpotiFLAC-Linux-arm64
./SpotiFLAC-Linux-arm64 url
output_dir
[--service tidal qobuz spoti youtube amazon]
[--filename-format "{title} - {artist}"]
[--use-track-numbers] [--use-artist-subfolders]
[--use-album-subfolders]
[--loop minutes]
API Reference
SpotiFLAC() Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
str |
Required | The Spotify URL (Track, Album, or Playlist) you want to download. |
output_dir |
str |
Required | The destination directory path where the audio files will be saved. |
services |
list |
["tidal", "deezer", "qobuz", "spoti", "youtube", "amazon"] |
Specifies which services to use and their priority order. |
filename_format |
str |
"{title} - {artist}" |
Format for naming downloaded files. See placeholders below. |
use_track_numbers |
bool |
False |
Prefixes the filename with the track number. |
use_artist_subfolders |
bool |
False |
Automatically organizes downloaded files into subfolders by artist. |
use_album_subfolders |
bool |
False |
Automatically organizes downloaded files into subfolders by album. |
loop |
int |
None |
Duration in minutes to keep retrying failed downloads. |
Filename Format Placeholders
When customizing the filename_format string, you can use the following dynamic tags:
{title}- Track title{artist}- Track artist{album}- Album name{track}- Track number{date}- Full release date (e.g., YYYY-MM-DD){year}- Release year (e.g., YYYY){position}- Playlist position{isrc}- Track ISRC code{duration}- Track duration (MM:SS)
Want to support the project?
If this software is useful and brings you value, consider supporting the project by buying me a coffee. Your support helps keep development going.
API Credits
Song.link · hifi-api · dabmusic.xyz · spotidownloader · SpotubeDL · afkarxyz
[!TIP]
Star Us, You will receive all release notifications from GitHub without any delay ~
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spotiflac-0.2.8.tar.gz.
File metadata
- Download URL: spotiflac-0.2.8.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3c12654cd68dc3f403af94f3cc50195e9cb8abd54bdca5e96a4812609a0fd01
|
|
| MD5 |
21c73fdfa2ea6a614afa03eae10f458c
|
|
| BLAKE2b-256 |
cfd8a4e3a4801416f8bb7ad7651b37fb72b70413ec39ff80d59b0340d4bf61cf
|
File details
Details for the file spotiflac-0.2.8-py3-none-any.whl.
File metadata
- Download URL: spotiflac-0.2.8-py3-none-any.whl
- Upload date:
- Size: 39.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44f7e5c2fe3d9122b0480586d16664d6afb4f8b9191046a7279d4f6f65756abd
|
|
| MD5 |
c73641cd48fde22714d411b689510960
|
|
| BLAKE2b-256 |
b69d5ce8ad2eeca225edda25f4643fbab1a0c74644582771f9a4849b4f8d8a34
|