注:该代码仅限教学借鉴,处学习以外的用途请勿使用
#发送请求
import requests
#音乐地址
url='https://webfs.tx.kugou.com/202406031627/1a3ae59502798f1b244c9f703a275e56/v2/bfbdd3df47727b701d4480ea36a8f73b/part/0/960111/G299/M0B/0D/9F/clip_C5UEAGVdYSWAAREwAEycKZt42YE586.mp3'
#伪装自己
headers={'User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0'}
a=requests.get(url)
d=open('大鱼.mp3','wb')
d.write(a.content)