Skip to content

Latest commit

 

History

History
98 lines (59 loc) · 3.53 KB

INSTALLATION.md

File metadata and controls

98 lines (59 loc) · 3.53 KB

Installation Guide

  1. Go to Spotify Developers and LogIn from your Spotify Account

Spotify Developer Page

  1. After Logging In from your Spotify Account create a new Application

Spotify Application Page

  1. Click on Create An App and you will see this page

Spotify Create Application

  • An Example Image Has Been Provided

Trial Application

  1. After clicking on Create you will be redirected to this page

Application Main Page

Screenshot_20220314_171756

  • here you should see a callback section

Screenshot_20220314_171904

  • in that please add the following url just as is http://example.com/callback/
  1. Click on SHOW CLIENT SECRET highlighted in green text

Client Spotify And ID

  1. Copy Client ID and Client Secret separately since they are needed later on

  2. Then go to the GitHub Repository Main Page and click on Code highlighted in green

GitHub Main Page

  1. After clicking on Code you will see something like this

GitHub Download

  1. If you have Git installed you can clone the repository $git clone https://github.com/Reverend-Toady/Spotify-Downloader.git

  2. If you don't, no need to worry click on Download ZIP to download the zip file

  3. Then go to where you cloned or downloaded the repository contents and open a terminal

  4. 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)

  5. You will now be greeted by something like

Terminal Output

- 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

  1. Now you will be redirected to a page asking for you to authorize the program accessing your spotify account information, please click agree

  2. now copy the url to the page you are in

Redirect URL

  1. Paste this redirect url to the promt asking for it in the terminal

  2. The program should run well now, if facing any errors please open an issue on github