A Script that checks for your last liked songs on Spotify and adds it to a defined Playlist.
Table of Contents
Use the Version Control System git to install Spotiply.
git clone https://github.com/Luffy404/Spotiply
After that install all required python Libraries that can be found in requirements.txt.
On Windows:
py -m pip install -r requirements.txt
On Linux:
python3 -m pip install -r requirements.txt
Then configure config.json. You will require a Client ID and Client Secret which you can obtain on the Developer Page of Spotify.
You need to create a new application and edit the Settings. Under "Redirect URIs" you'll need to add the REDIRECT_URI found in config.json (It's set to "http://localhost" by default).
Run main.py
On Windows:
py main.py
On Linux:
python3 main.py
After that follow the Instructions that may appear in the Script.
- "CLIENT_ID"
- The client ID from Spotify
- "CLIENT_SECRET"
- The client secret from Spotify
- "REDIRECT_URI"
- The Redirect URI used by Spotify to authorize access.
- "SCOPE"
- The scope your application will use.
- More Scopes can be found here
- "playlist_id"
- The ID of the playlist that should get updated.
- The ID is found in the URL if you copy your playlist.
- If left empty or invalid a playlist will be generated.
- "playlist_name"
- This value will be the Name of the playlist.
- This will only take effect if no playlist is found.
- This value will be the Name of the playlist.
- "playlist_description"
- This value will be the description of the playlist.
- This will only take effect if no playlist is found.
- This value will be the description of the playlist.
- "max_songs"
- This value will define how many tracks will be added to the playlist.
- "refresh_time"
- Time in minutes it waits until it compares the playlists.
- "is_public"
- Defines if the playlist is set public.
- This will only take effect if no playlist is found.
- Defines if the playlist is set public.
- "token_expiration"
- Time in minutes the token will be valid.
Pull requests, issue reports and feature requests are welcome. Any contributions are greatly appreciated.