Python 3.x Spotipy当前用户保存的曲目不返回任何内容
我正在尝试使用Spotipy获取spotify数据,但运行时:Python 3.x Spotipy当前用户保存的曲目不返回任何内容,python-3.x,spotify,spotipy,Python 3.x,Spotify,Spotipy,我正在尝试使用Spotipy获取spotify数据,但运行时: token = util.prompt_for_user_token(username, scope="user-library-read user-top-read", client_id=client_id, client_secret=client_secret, redirect_uri='http://localhost/') sp = spotipy.Spotify(auth=token) 然后 tracks = sp
token = util.prompt_for_user_token(username, scope="user-library-read user-top-read", client_id=client_id, client_secret=client_secret, redirect_uri='http://localhost/')
sp = spotipy.Spotify(auth=token)
然后
tracks = sp.current_user_saved_tracks()
它返回空的json数据。只有当我这样做的时候它才会起作用
top.当前\u用户\u顶级\u艺术家(限制=10,时间范围为长期)
但对于时间范围,不能使用不同的参数值