0
我知道如何从Spotify API查询XX。正如下面的脚本中,我们只需设置keywords = XX
从Spotify API获取随机歌曲
url = 'https://api.spotify.com/v1/search?q='+ keywords +'&type=' + search_type +'&offset='+ off +'&limit=' + lim
j = requests.get(url).json()
但我想知道,如果我想查询随机歌曲,我该怎么办?只需查询whitespace?或为歌曲ID生成随机数字?
谢谢!