lambdark
Results
1
comments of
lambdark
就个人使用经验而言,无需手动拼接 因为调用`https://api.codemao.cn/tiger/v3/web/accounts/login`登录成功返回的header里有[Set-Cookie](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Set-Cookie) 以python的`requests`库为例(使用`Session`类) ```python from requests import Session s = Session() r_login = s.post( "https://api.codemao.cn/tiger/v3/web/accounts/login", json={ "pid": "65edCTyg", "password": "xxxxxx", "identity": "13344445555", }, ) print(r_login.headers['Set-Cookie']) # 后续的所有请求会自动带上Cookies r = s.get("https://api.codemao.cn/web/users/details")...