Closed iChenwin closed 6 years ago
时隔N个月的回复... 可以爬直播间的弹幕了, csrf是cookie中bili_jct字段
# 大致代码如下. 需要完整的代码我也可以传上来
url = "https://api.live.bilibili.com/ajax/msg"
csrf = cookies['bili_jct']
data = {
'roomid': roomid,
'csrf_token': csrf
}
r = requests.post(url, headers=headers ,data=data)
能帮忙给个思路吗? 蟹蟹~