The Intent of this project is to be able to download the images of your favorite spotify artists based on your listening history. The project will allow you to download all different images sizes of an artist with their respective directory/folder.
python -m venv venv
Then activate it
source venv/bin/activate
Install all the required dependencies. Only required ones are requests, pydantic, and pydantic_settings
pip install -r requirements.txt
To be able to use spotify api, you must create a devloper account, which is free of charge. Navigate to spotify devloper. Once logged in and agree to terms and services, you must create an app. You can give it any name you want. However, make sure that your redirect url is the same as the one you intend to use.
Once that is done, navigate to the settings of your app and simply copy and paste the client_id and client_secret to your environemnt variable.
CLIENT_ID=
CLIENT_SECRET=
REDIRECT_URI=
For the REDIRECT_URL, it is common practice to set it to
REDIRECT_URI=http://localhost:8888/callback
for development purposes.
python main.py
You will be prompted to enter the code to grant access Simply navigate to the link & grab everything that is after code= and paste it into the running program. Once you hit enter, all the images of your favorite artists will be upload to your "uploads" directory.