先点右键检查点网络在在消息框发消息找到下面蓝色部分
import time
import json
import requests
import random
def send_message(uid, content):
data = {
'msg[sender_uid]': my_uid,
'msg[receiver_id]': uid,
'msg[receiver_type]': '1',
'msg[msg_type]': '1',
'msg[msg_status]': '0',
'msg[content]': '{
{"content":"{}"}}'.format(content),
'msg[timestamp]': str(time.time())[:10],
'msg[new_face_version]': '0',
'msg[dev_id]': msg_id,
'from_firework': '0',
'build': '0',
'mobi_app': 'web',
'csrf_token': csrf,
'csrf': csrf,
}
headers = {
'cookie': cookie,
'origin': 'https://message.bilibili.com',
'referer': 'https://message.bil