Hi guys im new in the pythonista world, Im not a very good english writer so I’ll try to be short
I have a small idea of a script in python but I need to work with Spotipy, but when I try to start the script says the client_id is not set, I don’t understand where I have to set it, I tried to modify the oauth2.py in the variables, but doesn’t work, where I set the environment variable?
This is an example code i need to make work (sesrch.py on spotipy github page)
from spotipy.oauth2 import SpotifyClientCredentials
import spotipy
if len(sys.argv) > 1:
search_str = sys.argv[1]
else:
search_str = 'Radiohead'
sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials())
result = sp.search(search_str)
pprint.pprint(result)