周 (@yoyo) 在 分享notdiamond.ai正常会话next-action的获取 中发帖
不明白为什么网站会需要next-action这个东西
正常会话的时候 next-action 是会一直变的,当然,第一个next-action准确的话 是可以使用一个action的。 目测的话action是一天的有效期。
然而,next-action确实没有什么规律啊 没有规律的话只可以瞎凑了
首先是登录:
[image]
然后拼凑cookie,再次带登录cookie请求主页 https://chat.notdiamond.ai/
[image]
通过正则获取到请求next-action的js url
js_url = re.findall('"static/chunks/(.*?).js', response.text)[-2]
url = f'https://chat.notdiamond.ai/_next/static/chunks/{js_url}.js'
为...