jiangly (@QAWS12g)抓了个语雀的AI接口 中发帖

抓取两个参数

随便用ai聊一句
[image]
[image]

import requests

# 定义函数来设置Cookie
def set_cookie(headers, cookie_value,x_csrf_token):
headers['Cookie'] = cookie_value
headers['x-csrf-token'] = x_csrf_token

url = 'https://www.yuque.com/api/ai/ai_writing/completion'

headers = {
'Content-Type': 'application/json',
}

# 设置Cookie
cookie_value = ''
x_csrf_token = ''
set_cookie(headers, cookie_value)

d...