本帖最后由 suchocolate 于 2021-10-12 08:24 编辑 from urllib.parse import quote
import requests
name = quote('晴天')
url = f'https://complexsearch.kugou.com/v2/search/song?callback=callback123&keyword={name}&page=1&pagesize=30&bitrate' \
f'=0&isfuzzy=0&tag=em&inputtype=0&platform=WebFilter&userid=0&clientver=2000&iscorrection=1&privilege_filter=0' \
f'&srcappid=2919&clienttime=1633997511959&mid=1633997511959&uuid=1633997511959&dfid=-&signature' \
f'=3F6266DD212BDF2B6512A0261ED57A03'
r = requests.get(url, headers={'user-agent': 'mozila'})
print(r.text)
|