Obtaining CD Jacket Images Using Spotify API

Table of Contents
In Python, I will try to obtain CD jacket images using the Spotify API.
Overview
Using the music directory managed on Windows 10, I create a Query for the Spotify API to obtain the URL of the CD jacket images. By obtaining the jacket images, they will be displayed in the player software. This is a time-consuming task if done manually, but I will automate most of it.
Repository: https://github.com/rmc8/cd_jacket_scraper_for_spotify
Preparation for Using the API
Here, I will obtain the keys for using the API and install the Python libraries.
Obtaining the API Key
Log in to the Developer page. You can log in with your Spotify account. If you don't have an account, create a Spotify account.
Once logged in, click [CREATE AN APP].
For "App name", enter a recognizable name like "CD Jacket scraper", and for "App description", enter a clear description like "Get the CD jacket". Then, check the two checkboxes. Checking them means you agree to the Permissions and Guidelines. Confirm that the input is correct and click the [CREATE] button.
After clicking, the app will be created, and the dashboard will be displayed. On the dashboard, click [SHOW CLIENT SECRET] to register the Client ID and Client Secret in the Windows environment variables.
[FYI] Setting environment variables
For the Client ID, set the variable name to "SPOTIFY_CLIENT_ID" and paste the value displayed on the dashboard as the variable value. Similarly, for the Client Secret, set the variable name to "SPOTIFY_SECRET_ID" and paste the dashboard value as the variable value. After registering the variables, restart your PC to make them usable.
Installing Python Libraries
Please install the following libraries using pip or similar.
- spotipy
- requests
- PySimpleGUI