[Python] 纯文本查看 复制代码
r = '{
"info": {
"data": [{
"activity_icon": "",
"activity_type": "",
"avatar": "jpg",
"cover_url": "72595.jpg",
"dress": "0",
"hls_url": "cis60rhb65ed.m3u8",
"host_intro": "兰博基尼",
"host_uuid": "cis60rhb65ed",
"hot": "54603.75",
"is_follow": "0",
"location": "1177",
"nickname": "十二",
"onlines": "888",
"rank_icon": "",
"rtmp_url": "cis60rhb65ed",
"sex_type": "2",
"status": "1",
"stream_id": "cis60rhb65ed",
"tag": ["歌手"],
"title": "",
"tv_room": "0"
}, {
"activity_icon": "",
"activity_type": "",
"jpg",
"cover_url": "1636412638728.jpg",
"dress": "0",
"hls_url": "dk8tr4qspi9s.m3u8",
"host_intro": "萌新求关照",
"host_uuid": "dk8tr4qspi9s",
"hot": "54445",
"is_follow": "0",
"location": "1912",
"nickname": "神蜜人",
"onlines": "757",
"rank_icon": "",
"rtmp_url": "dk8tr4qspi9s",
"sex_type": "2",
"status": "1",
"stream_id": "dk8tr4qspi9s",
"tag": ["舞蹈"],
"title": "",
"tv_room": "0"
}],
"extra": null
},
"response_status": "success",
"msg": ""
}'
s = json.loads(r)
uuid =s['info']['data']['host_uuid']