Skip to main content

Download album artwork from Spotify

Project description

spotify_images

spotify_images provides a simple method of retrieving all unique album art from either a Spotify playlist or artist on Spotify and creating a collage from the query.

Installation:

git clone https://github.com/orioncrocker/spotify_images

Setup:

Before using this program, you'll need to get credentials from Spotify's API. An account on Spotify will provide two credentials: 'client id' and 'client secret.'

Modify the config.py file's two fields:

client_id = 'your_client_id'
client_secret = 'your_client_secret'

Two prerequisites you'll need installed on your machine are pillow and spotipy. You can easily get both of these from the pip repository. If you aren't yet aware of the beauty of pip, go check out it's website. You're welcome.

pip3 install -r requirements.txt

Usage:

Download album art from an artist or playlist:

By default spotify_images fetches all unique art of any Spotify arist or playlist link given as an argument

python3 main.py https://open.spotify.com/playlist/13OSe3KLY2qnUrdP2Sv6j7

Verbose

Use the -v or --verbose flag to see what the program is doing in real time.

Create a collage

Use the -c or --collage collage flag to create a collage of the artwork downloaded.

python3 main.py -vc https://open.spotify.com/playlist/13OSe3KLY2qnUrdP2Sv6j7
Name: SRC#15
Type: playlist
results/src#15/blade_runner_(music_from_the_original_soundtrack).jpeg
results/src#15/low_country.jpeg
results/src#15/true_widow.jpeg
results/src#15/these_changing_skies.jpeg
results/src#15/odyssey.jpeg
results/src#15/can't_buy_happiness.jpeg
results/src#15/reptilians.jpeg
results/src#15/dangerous_days.jpeg
results/src#15/volume_1_(deluxe_edition).jpeg
results/src#15/led_zeppelin_iv.jpeg
results/src#15/lunz.jpeg
results/src#15/tempel.jpeg
12 saved to results/src#15
Total unique pictures: 12
Rows: 3	Cols: 4
Collage saved as: results/src#15.jpeg

The resulting collage:

Unleash The Archers Collage

Future features:

I would love to be able to specify a width and height for the purposes of creating wallpapers. Additionally, a website that hosts this code via Flask would be ideal so that anyone could utilize this software without the hassle of installation and configuration. However if I'm going do that I may as well rewrite this program in Javascript and save myself some trouble.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotify-album-art-0.0.3.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

spotify_album_art-0.0.3.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file spotify-album-art-0.0.3.1.tar.gz.

File metadata

  • Download URL: spotify-album-art-0.0.3.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.3

File hashes

Hashes for spotify-album-art-0.0.3.1.tar.gz
Algorithm Hash digest
SHA256 58c4708070e3a7a4ab091079d808c6d35a7426f510ed9d47701407bb2937cb0f
MD5 41c67f0c4a511d0b89d0036391075581
BLAKE2b-256 c55487b067642914a7a79c1fa7e70f89d2d53a2bb5ce4680aa3785a4d626d017

See more details on using hashes here.

File details

Details for the file spotify_album_art-0.0.3.1-py3-none-any.whl.

File metadata

  • Download URL: spotify_album_art-0.0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.3

File hashes

Hashes for spotify_album_art-0.0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90c8f6cf59284f0fbf7f00f84fa789c507a509dd2dc266d094d111658b7d6bed
MD5 5019b0e80e1a8c97c73012f979c52027
BLAKE2b-256 d72fa762ffcc57992356e5b9f619dc0afc9df7c89ced55acc347dd8c5bc49f8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page