1. 程式人生 > >【python爬蟲自學筆記】-----網易雲開放API

【python爬蟲自學筆記】-----網易雲開放API

搜尋歌曲API:
請求方式:post
請求地址:http://music.163.com/api/search/get/web?csrf_token=
請求資料:hlpretag=&hlposttag=&s=搜尋歌曲名或歌手名&type=1&offset=0&total=true&limit=返回資料條數
請求頭部:(僅供參考)陣列形式
'Host: music.163.com',
返回資料:json資料格式,這裡就不講了。


獲取歌曲歌詞API:
請求方式:get
請求地址:http://music.163.com/api/song/lyric?
請求資料:os=pc&id=歌曲id&lv=-1&kv=-1&tv=-1
返回資料:返回json型別lyric歌曲歌詞資料。


獲取歌曲直鏈地址API:
請求方式:get
請求地址:http://music.163.com/api/song/detail/?
請求資料:id=歌曲id&ids=%5B歌曲id%5D
返回資料:返回json型別歌曲檔案資訊。