-
Notifications
You must be signed in to change notification settings - Fork 43
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
captcha登录问题 #50
Comments
Looks to be very important to create a device_id and pass it to this library. I'm timed out on this now too. I was messing around with the library and didn't realize it was creating a random device_id name for each request (until I looked at the code). My account got timed out. Can only use existing sessions. Basically seems like this library will generate a random device_id for each request and then pikpak just locks you out for some time. No idea for how long. But this needs to be fixed in the code. It should generate a random device and and then save that as .json so its used everytime. Or just require you to pass it as a string would be even better. |
你复制过来的captcha_token好像后面多了&expires_in=... |
还是不行.. |
那就只能是先手动抓包 refresh_token,然后配置到程序里面 |
是重新获取的captcha_token,还是上次的?返回的captcha_token只有几分钟有效期 |
我试了这个可以用,但是 alist 的 pr 。。。。你的api可以加入吗? |
是新获取的 |
Please solve the captcha in the browser:
https://user.mypikpak.com/captcha/v2/spritePuzzle.html?action=POST%3Ahttps%3A%2F%2Fuser.mypikpak.com%2Fv1%2Fauth%2Fsignin&appName=NONE&appid=XBASE&captcha_token=ck0.4ScEhjbOUkA7FO5bQtdYYSDjrKBbynLXxTnnmniChDbTLmYDRgbZsjEIiVHVIZUlbXRx9goO5eS_zUipcH2Aqe3zGCx1huQf2J2NOIu4Vr25PWRRd2tgZG4hdATeleF8KnMF_-hof7sm-jBGin-_y_4SleGHJ4Dmo2vo0HTT_CusoN2mFQTzuCNuElut1BczQcURaJ89tP63FdsFHc7uWKOoiEy4-5VvP8mnxvCLCx2bkIXI0SvkvOMg_QgmIZh_32R1B0l6hwtkvppQTDZpvm7vvt2o2yAo3lUNK64WrRwEJQ8zBDQ6XyMcj10_kix97HUPvUllH5T7DxdTd3njkETu_A8JYdMlQ21OUHvHNzQuy5c8sqbyVl4DEVPI6-9eV7LLNddcQd6D6gDR6gWmoqOa5VfXtcPzZVgcYC7c7Kdz4zMewjZTBp_xnkKkpAZg&clientVersion=NONE&client_id=YNxT9w7GMdWvEOKa&creditkey=ck0.4ScEhjbOUkA7FO5bQtdYYSDjrKBbynLXxTnnmniChDbTLmYDRgbZsjEIiVHVIZUlbXRx9goO5eS_zUipcH2Aqe3zGCx1huQf2J2NOIu4Vr25PWRRd2tgZG4hdATeleF8KnMF_-hof7sm-jBGin-_y_4SleGHJ4Dmo2vo0HTT_CusoN2mFQTzuCNuElut1BczQcURaJ89tP63FdsFHc7uWKOoiEy4-5VvP8mnxvCLCx2bkIXI0SvkvOMg_QgmIZh_32R1B0l6hwtkvppQTDZpvm7vvt2o2yAo3lUNK64WrRwEJQ8zBDQ6XyMcj10_kix97HUPvUllH5T7DxdTd3njkETu_A8JYdMlQ21OUHvHNzQuy5c8sqbyVl4DEVPI6-9e1fxgfv9GExI_tcLEwH7_uw&credittype=1&device_id=39493dc43c1661a7ed467c121765fad6&deviceid=39493dc43c1661a7ed467c121765fad6&event=shield-captcha-init&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&traceid=&redirect_uri=https%3A%2F%2Fmypikpak.com%2Floading&state=getcaptcha1724023291734
Input the captcha_token (from the browser address bar, it's after captcha_token=):
ck0.qeHlugmjJ6ntf5aLTmD3xLygXKbQgrlk4vzUlteoVIlkT2AE__GHsGQ7S1AdH7uSar_j0Ip4Eocq2Zq3QPGzTzeL8F3jJ3kcqCF09ZzFe-H-021Fq-4I4wiiyI-kPdOO4KznnbUfaxOCFtUi_2ubTr3dq-B4USePSk7QtPHsVNtsyilv-m753eRliAAxYDZfkCKbkqxcXHhn2UQi8ficQ_ln6l9uMeONBOZLTe05R6wk8Q6olifWd9AJihX3Hdiia3y3nteUoY3hC0Ewyzp6YlIROlXJV2HgEd-qr5eLDbSAMWgpCQqFksefdPitdkij90LfB__C0Rkb9qOmozvmfqOCijjet8GsXurtgTkTUxnnuijbApTt_KdYtVDnzN7P-eQsvivQEbzCufRDtoJNHATPR6rgMbHj9kbdZr8RWuxMStYRDSEa8RZbED7oZY0D&expires_in=589
error: {'error': 'captcha_invalid', 'error_code': 4002, 'error_description': 'Code(4002) - captcha_token invalid', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'Code(4002) - captcha_token invalid', 'domain': '', 'metadata': {}}, {'@type': 'type.googleapis.com/google.rpc.LocalizedMessage', 'locale': 'en', 'message': 'The safety verification has failed. Please try again'}]}
error: {'error': 'captcha_invalid', 'error_code': 4002, 'error_description': 'Code(4002) - captcha_token invalid', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'Code(4002) - captcha_token invalid', 'domain': '', 'metadata': {}}, {'@type': 'type.googleapis.com/google.rpc.LocalizedMessage', 'locale': 'en', 'message': 'The safety verification has failed. Please try again'}]}
error: {'error': 'captcha_invalid', 'error_code': 4002, 'error_description': 'Code(4002) - captcha_token invalid', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'Code(4002) - captcha_token invalid', 'domain': '', 'metadata': {}}, {'@type': 'type.googleapis.com/google.rpc.LocalizedMessage', 'locale': 'en', 'message': 'The safety verification has failed. Please try again'}]}
浏览器做完后粘贴过来还是报错,正常网页都能登录,如果没有captcha验证的话脚本能正常登录,感觉和#48 issue也不完全一样
The text was updated successfully, but these errors were encountered: