Skip to content

liamhackett/Spotify-API-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify-API-Demo

This is a basic demo of the spotify API using python. It requests the currently playing song on your spotify account and prints the title and the artist to the console. There is a function to download the album cover in the Song class. This project served as a demo to use the spotify API for the current playing song. I converted this code to work with a raspberry pi LED matrix to display the album cover of the song I was playing. The tokens.py file could not be uploaded since it contains information specific to my account To get the tokens for the file you will need to curl them following the instructions in the Spotify Web API docs.

The tokens.py file contains:

  • spotify token for the request
  • spotify username
  • spotify refresh token
  • spotify developer client id
  • base64 encoded client_id:client_secret (in that format) for the refresh token

The tokens.py format: spotify_token = "" spotify_user_id = "" refresh_token = "" base_64 = ""

About

Python script that uses the spotify api to display the currently playing song in the console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages