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

经常登录不成功,只有偶尔成功一次(验证码已验证正确) #2

Open
raeuz opened this issue Jan 19, 2018 · 4 comments

Comments

@raeuz
Copy link

raeuz commented Jan 19, 2018

Hi,

今天在试用这个脚本,想一边抢票一边看看代码学习。

但目前发现一个问题,在登录过程中执行到 以下这行代码就重定向(status code 302)https://github.com/Why8n/EasyTrain/blob/master/train/login/Login.py#L99 ,
只有偶尔成功登录得上。

今天我花了半天时间去研究也没修复这个问题,@Why8n 能否帮忙修复下这个问题啊? 很喜欢你写的这个脚本,代码简洁。

谢谢

@Pytaya
Copy link

Pytaya commented Jan 19, 2018

重复提交post请求就可以了,大概提交3-7次/每2秒就好

@predawnl
Copy link

请问一下登陆的时候验证码输入格式是什么

@Why8n
Copy link
Owner

Why8n commented Jan 30, 2018

@raeuz 新代码已解决这个问题。方法就像@Pytaya说的那样,重复提交请求即可。

@Why8n
Copy link
Owner

Why8n commented Jan 30, 2018

@predawnl 更新下代码,按提示输入。

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

4 participants