Last active
February 1, 2020 17:53
-
-
Save vlad-ds/bae7014b0d8063ffe6c67885d236141e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_features(track_id: str, token: str) -> dict: | |
sp = spotipy.Spotify(auth=token) | |
try: | |
features = sp.audio_features([track_id]) | |
return features[0] | |
except: | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment