赞
踩
"format": " json", "inCharset": " utf8", "outCharset": " utf-8", "notice": " 0", "platform": " yqq.json", "needNewCode": " 0" } response = requests.get(url, params=params, headers=headers) # print(re.findall('callback\((.\*)\)', response)[0]) search_result = eval(re.findall('callback\((.\*)\)', response.text)[0]) song_info_list = search_result['data']['song']['list'] # print() tplt = "{0:<10}\t{1:<10}\t{2:<20}" print(tplt.format("序号", "歌手", "歌名")) for song_info in song_info_list: # print(song\_info) song_name = song_info['songname'] song_mid = song_info['songmid'] singer = song_info['singer'][0]['name']
找到单个音乐的请求数据接口
音乐的播放地址为purl

动态提交的数据来自与同一个js文件

调试js代码请求方法
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。