-
Notifications
You must be signed in to change notification settings - Fork 60
cookie的有效时间太短了, 介个消失就挂了, 这个又办法吗? #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
下周我看下哈
…---原始邮件---
发件人: "Beverley ***@***.***>
发送时间: 2025年3月29日(周六) 上午10:49
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [cv-cat/XianYuApis] cookie的有效时间太短了, 介个消失就挂了, 这个又办法吗? (Issue #2)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Littlemonk-java created an issue (cv-cat/XianYuApis#2)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
太棒了, 已经开始期待了 |
解决方法: 当然是更新 cookie 了,更新的方法有很多, 比如:
|
接口的response里面header上有set-cookies 用于更换新的cookies |
需要起一个轮询查询的设计,不能太频繁 |
我目前的方法是mitmproxy+selenium,mitmproxy代理selenium拦截闲鱼的请求抓包,获得cookies的值。还有另一种方法是通过requests请求进行刷新cookie的,但目前测试的效果感觉有点不稳定,偶尔能刷新出来。需要requests请求刷新cookie方法的话,我可以分享 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: