Discussion about this post

User's avatar
David Stark's avatar

Some explanation for the code would be helpful. There's no comments, and there's little documentaiton in the spotipy module for what any of these functions expect in terms of the underlying data structures that get returned. The spotipy api docs doesn't give much info either.

FWIW, here's the error when you run this in a script. I filled the client_id and secret from my spotipy account just like you said. The redirect uri is the set to match the one in the code. It chokes on the extract_drake_data() function where it calls the sp.search() function.

spotipy:exceptions.SpotifyOauthError: Server listening on localhost has not been accessed

Or: my browser gets redirected to a link that says the page cannot be accessed.

Expand full comment
2 more comments...

No posts