Skip to content
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

使用12306自带的自动刷新接口 #4

Open
chinagoldline opened this issue Mar 4, 2018 · 3 comments
Open

使用12306自带的自动刷新接口 #4

chinagoldline opened this issue Mar 4, 2018 · 3 comments

Comments

@chinagoldline
Copy link

哈哈,跟着你的文章实践了一遍。
楼上提出的慢排队问题确实存在,而且出现的概率很高。
研究了一天他自带的刷票接口,总是提示出票失败。有没有兴趣一起探讨一下呀。
https://kyfw.12306.cn/otn/confirmPassenger/confirmSingleForQueueAsys

@Why8n
Copy link
Owner

Why8n commented Mar 6, 2018

更新下代码,慢速排队应该解决了。具体来说就是在获取乘客信息后要暂停一点时间,模拟真实用户选择乘客情景。
12306应该对很多请求都进行了监控,当一次提交失败后,下一次快速提交会导致慢速排队,目前的代码对前几次提交应该可以避免慢速排队问题,但若是提交多次,会被12306监控到,从而重新进入慢速排队。

@chinagoldline
Copy link
Author

@Why8n 我再学习一下你的流程哈,膜拜大牛中。

@holidaysss
Copy link

这个会被封IP吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants