spotify

Spotify Refresh Token Python

Spotify Refresh Token Python Question: I have a python program that returns whatever song I’m currently listening to. The Access Token I get from Spotify API only lasts an hour and I’m having trouble finding an easy way to implement a refresh token into my code. SPOTIFY_GET_CURRENT_TRACK_URL = ‘https://api.spotify.com/v1/me/player’ SPOTIFY_ACCESS_TOKEN = ‘BQBQMLkkLb6az9TRv-PDXFFcm4KHrofc67H12Uzs3FXaPWHETy4ivnC-WGu2Jg5wlZ_yhggGypiO0Gnv_QkNGkefTuCjNR_Tzjw4pv2W9f_9_D7-LfD2W5KVPzh2DxMmf9TNPpSn200D_Xd4AD8F_MeJc-DIlA’ #Method to return …

Total answers: 3

discord.py Spotify doesnt seem to do anything

discord.py Spotify doesnt seem to do anything Question: I’m developing my first bot just as a hobby and something to help me learn some Python and I’ve been trying to integrate Spotify with it but it just doesn’t seem to work. I also read the other post on this website but it did not help. …

Total answers: 2

Spotipy 401 / 405 No token provided

Spotipy 401 / 405 No token provided Question: I have been working on a Spotify / Spotipy application which will add the current song to a certain playlist. My functions for getting the current song and showing a playlist are all doing fine. My function for adding a song to a playlist is not. I …

Total answers: 1

How to get Spotify current playing song in Python (Windows)?

How to get Spotify current playing song in Python (Windows)? Question: I want to show the current playing song in Spotify on a 16×2 LCD. I was thinking of connecting the LCD with my Arduino and then making a Python script that sends the current playing song of Spotify to the Arduino. To get to …

Total answers: 4