Quan666 / PikPakAPI

PikPak API
140 stars 42 forks source link

captcha登录问题 #50

Open weibaozi opened 3 months ago

weibaozi commented 3 months ago

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也不完全一样

wheezy1749 commented 3 months ago

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.

Quan666 commented 3 months ago

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也不完全一样

你复制过来的captcha_token好像后面多了&expires_in=... 把这个去的后试试

weibaozi commented 3 months ago

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也不完全一样

你复制过来的captcha_token好像后面多了&expires_in=... 把这个去的后试试

还是不行..

Quan666 commented 3 months ago

那就只能是先手动抓包 refresh_token,然后配置到程序里面

Three-taile-dragon commented 3 months ago

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也不完全一样

你复制过来的captcha_token好像后面多了&expires_in=... 把这个去的后试试

还是不行..

是重新获取的captcha_token,还是上次的?返回的captcha_token只有几分钟有效期

ericvlog commented 3 months ago

我试了这个可以用,但是 alist 的 pr 。。。。你的api可以加入吗?

https://github.com/alist-org/alist/pull/7024

weibaozi commented 3 months ago

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也不完全一样

你复制过来的captcha_token好像后面多了&expires_in=... 把这个去的后试试

还是不行..

是重新获取的captcha_token,还是上次的?返回的captcha_token只有几分钟有效期

是新获取的