好友
阅读权限10
听众
最后登录1970-1-1
|
有一组 json
nlist =
{
"activity_icon":"",
"activity_type":"",
"avatar": 626508862403.jpg",
"cover_url":"1626516581.jpg",
"dress":"1",
"hls_url":"https://播放地址/rbzhibo/ddmlhatcur40.m3u8",
"host_intro":"萌新求关照",
"host_uuid":"ddmlhatcur40",
"hot":"48440.25",
"is_follow":"0",
"location":"424",
"nickname":"竹子林_甜甜",
"onlines":"720",
"rank_icon":"",
"rtmp_url":"rtmp://播放地址/rbzhibo/ddmlhatcur40",
"sex_type":"2",
"status":"1",
"stream_id":"z1.rbzhibo.ddmlhatcur40",
"tag":[
],
"title":"",
"tv_room":"0",
"url_out_avatar":"",
"url_out_bg":""
},
{
"activity_icon":"",
"activity_type":"",
"avatar":"/1626172660597.jpg",
"cover_url":"1626091011.jpg",
"dress":"1",
"hls_url":"https://播放地址/rbzhibo/dg9nzqivl4j2.m3u8",
"host_intro":"萌新求关照",
"host_uuid":"dg9nzqivl4j2",
"hot":"11392.5",
"is_follow":"0",
"location":"3134",
"nickname":"时代少女2团",
"onlines":"913",
"rank_icon":"",
"rtmp_url":"rtmp://播放地址/rbzhibo/dg9nzqivl4j2",
"sex_type":"2",
"status":"1",
"stream_id":"z1.rbzhibo.dg9nzqivl4j2",
"tag":[
],
"title":"",
"tv_room":"0",
"url_out_avatar":"",
"url_out_bg":""
},
{
"activity_icon":"",
"activity_type":"",
"avatar":"/taqu_ios_0_1713376644_1627831981901.jpg",
"cover_url":"/taqu_ios_cover_1610177018.jpg",
"dress":"0",
"hls_url":"https://播放地址/rbzhibo/cjvdg367z8bp.m3u8",
"host_intro":"老子可遇不可求🖤",
"host_uuid":"cjvdg367z8bp",
"hot":"10353.5",
"is_follow":"0",
"location":"1644",
"nickname":"趣多多_",
"onlines":"586",
"rank_icon":"",
"rtmp_url":"rtmp://播放地址/rbzhibo/cjvdg367z8bp",
"sex_type":"2",
"status":"1",
"stream_id":"z1.rbzhibo.cjvdg367z8bp",
"tag":[
"嗨唱"
],
"title":"",
"tv_room":"0"
},
# 我想取 host_uuid ,hot ,nickname 后面引号里的值
regex = '(?<=host_uuid":").*?"|(?<=nickname":").*?"|(?<=hot":").*?"'
str_select = re.findall(regex, nlist)
但是正则到的结果 后面都有个引号 怎么取消
ddmlhatcur40"
54286.25"
竹子林_甜甜"
dg9nzqivl4j2"
12686.75"
时代少女2团"
bdh5utdwip51"
9678.75"
|
|