Skip to content
Advertisement

Tag: spotipy

Get Spotify access token with spotipy on Django and Python

I’m new to Django and I’m trying to link Spotify to my webapp. I’m using Spotify to do it and it correctly access to Spotify. To do it I have a button that opens the view below views.py If I don’t use auth_token = sp_auth.get_access_token() everything works fine and I got redirected to the correct. Unfortunately, if I add that

Spotipy. Can`t pass the second part of oAuth (Python)

I want to create an app which will add some sorts of songs to the Spotify playlist. So it`s might be a good idea to use Spotipy (Python Library) to solve it. To add song to the playlist I need to know its URI. To know its URI I should use method called search (https://spotipy.readthedocs.io/en/2.19.0/#spotipy.client.Spotify.search). It requires some inputs and

Advertisement