qq音乐通过歌曲名搜索id,排行榜推荐歌曲 api

import requests
import json

def qmusic():
    # 搜索api
    url = 'https://c.y.qq.com/soso/fcgi-bin/client_search_cp?aggr=1&cr=1&flag_qc=0&p=1&n=1&w='
    MusicName = '明天你好'
    result = requests.get(url+MusicName).text
    res_java = json.loads(result[9:-1])
    song_id = res_java["data"]["song"]["list"][0]["songid"]
    print(song_id)

qq音乐根据用户在全民K歌的点唱行为进行排序,每周四更新

https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg?notice=0&platform=h5&tpl=3&page=detail&type=top&topid=36

登录用户在QQ音乐收听/分享/下载数排行榜

https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg?uin=0&notice=0&platform=h5&needNewCode=1&tpl=3&page=detail&type=top&topid=27

posted @ 2021-12-26 17:13  NPC_P  阅读(440)  评论(0编辑  收藏  举报