- Go to Spotify Developers and LogIn from your Spotify Account
- After Logging In from your Spotify Account create a new Application
- Click on
Create An App
and you will see this page
- An Example Image Has Been Provided
- After clicking on
Create
you will be redirected to this page
- next in the spotify developer dashboard click on your application and go to the settings tab
- here you should see a
callback
section
- in that please add the following url just as is
http://example.com/callback/
- Click on
SHOW CLIENT SECRET
highlighted in green text
-
Copy
Client ID
andClient Secret
separately since they are needed later on -
Then go to the GitHub Repository Main Page and click on
Code
highlighted in green
- After clicking on
Code
you will see something like this
-
If you have Git installed you can clone the repository
$git clone https://github.com/Reverend-Toady/Spotify-Downloader.git
-
If you don't, no need to worry click on
Download ZIP
to download the zip file -
Then go to where you cloned or downloaded the repository contents and open a terminal
-
now just run
-
If on linux
python3 main.py -n/--number [OPTIONAL PARAMETER (number of songs to add in playlist)]
-
If on windows
python main.py -n/--number [OPTIONAL PARAMETER (number of songs to add in playlist)]
-
for example
python3 main.py -n 20
(adds 20 songs to the playlist)
-
-
You will now be greeted by something like
- in the client id section add in the client id that was talked about earlier
- in the client secret section add in the client secret that was talked about earlier
- in the playlist link section add in the link to the playlist that you want to add random songs to
Note: if you get invalid client id or secret or any other error related to this, please delete the secrets.json file and try again
Note: Please add in the link to an empty playlist since the program deletes all songs in the playlist before adding new ones
how to create a spotify playlist
-
Now you will be redirected to a page asking for you to authorize the program accessing your spotify account information, please click agree
-
now copy the url to the page you are in
-
Paste this redirect url to the promt asking for it in the terminal
-
The program should run well now, if facing any errors please open an issue on github