https://github.com/simongendre/spotify2mp3
Download your spotify music from powershell !
https://github.com/simongendre/spotify2mp3
mp3 mp3-files powershell-script spotdl spotify
Last synced: about 1 month ago
JSON representation
Download your spotify music from powershell !
- Host: GitHub
- URL: https://github.com/simongendre/spotify2mp3
- Owner: SimonGendre
- Created: 2023-08-02T16:16:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-07T15:52:36.000Z (about 1 year ago)
- Last Synced: 2025-01-29T20:18:09.286Z (3 months ago)
- Topics: mp3, mp3-files, powershell-script, spotdl, spotify
- Language: PowerShell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify2mp3
This script allows you (more or less easily) to download your favorite Spotify playlist.
## Setup
1. This script works thanks to [spotdl](https://github.com/spotDL/spotify-downloader). Make sure it is installed.
2. You will then need to define the playlists, albums, songs, etc., to download. For that, the two text files must be modified.### playlists.txt
This file allows you to download playlists (or other things) by organizing them into folders (unlike 2DL.txt). The syntax is as follows:
```
FolderName;SpotifyLink
#For example:
PlugNRock;https://open.spotify.com/playlist/5XkjIzp66gB9nh7N6QjFbl
```
The script will first create the folder and then place all the songs from the playlist/album into it. There is no limit to folders, so enjoy :)### 2DL.txt
2DL.txt (ToDownload.txt if you haven't understood) specifies items to download without sorting. Everything placed here will be downloaded into the "Music" folder (without duplicates). Links can be added in any order; they will all be processed at some point. Lines starting with "#" are considered comments and are not read (like the documentation in general). Here's an example with a single link; for the comprehensive example, check the file directly.
```
#Outer Wilds (Original Soundtrack)
https://open.spotify.com/album/1U0A6RPNJB05PtuBcaTM7o
```## Operation
Before running the script, you need to define $musicDir (first line) to specify the folder where the songs will be ~~pirated~~ downloaded. The script will then create the appropriate folders and place the right music in them (not good music if the text files aren't mine). Spotdl will handle tagging MP3s based on Spotify and downloading MP3s from YouTube Music.
When everything is downloaded, the script will remove any songs that appears in the Playlists folder from the Music folder. That way you only have one of each file.
```
$musicDir
|-- Playlists
| |-- Folder1
| | |-- manyFiles.mp3
| |
| |-- CringeMusic
| |-- manyFiles.mp3
|
|-- Music
|-- manyFiles.mp3
```