spotify API get token - raw_input was called, but this frontend does not support input requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2022 11:40 PM
hello everyone, I'm trying use spotify's api to analyse my music data, but i'm receiving a error during authentication, specifically when I try get the token, above my code.
Is it a databricks bug?
pip install spotipy
from spotipy.oauth2 import SpotifyOAuth
from spotipy.oauth2 import SpotifyClientCredentials
import spotipy
import spotipy.util as util
sp = spotipy.oauth2.SpotifyOAuth(client_id='client_id
,client_secret='client_secret
,redirect_uri='http://localhost:8080/callback/'
,requests_timeout=5, open_browser=False)
sp.get_access_token()
error:
StdinNotImplementedError: raw_input was called, but this frontend does not support input requests.
- Labels:
-
Access Token
-
Client Secret
-
Input