Skip to content

A very simple python Spotify downloader that downloads tracks from Spotify directly.

Notifications You must be signed in to change notification settings

greffgreff/spotify-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Python Spotify Downloader

A very simple python Spotify downloader that downloads tracks from Spotify directly without needing external sources such as Youtube.

⚠️ This script is made for educational purposes. Please be aware of risks that come with stream-ripping.

Prerequisite

You need to have librespot, pydub, music_tag python packages already installed. If you have pip you can use the following command:

pip install requests librespot pydub music_tag

You will also need to have ffmpeg installed already. You can find the download for it here.

Usage

Run the python in the CLI like below will yield an MP3 file properly audio tagged:

python spotify_downloader --username <spotify username> --password <spotify password> --track <track id> --output_dir <output directory>

Where the track ID is as seen in the track's Spotify URL. For instance, 6FYobREsyfp4SgtpnQbnaf in the URL https://open.spotify.com/track/6FYobREsyfp4SgtpnQbnaf.

Before running the script, please familiarize yourself if its content.

About

A very simple python Spotify downloader that downloads tracks from Spotify directly.

Resources

Stars

Watchers

Forks

Languages