-
Notifications
You must be signed in to change notification settings - Fork 150
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
auth() failed #83
Comments
app也可以登錄,估計是 https://oauth.secure.pixiv.net/auth/token 又改了 |
Same problem, where can I see the new client_id and client_secret? |
but pixiv app is not updated and new install of pixiv app can still able to login. |
what then is the problem, do you think? |
maybe missing params or missing headers? i.e. we may need to sniff pixiv app again. |
Also not seeing any differences so far, just digging through the app what might have changed (Android pixiv 5.0.156):
client_id string no changes in the request parameters
client_id -> MOBrBDS8blbauoSck0ZfDbtuzpyT client ID and client secret and other values are still the same too
OAuth2 URL -> https://oauth.secure.pixiv.net/auth/token authentication URL still the same too
Headers: X-Client-Hash is now getting validated serverside, has to match the passed md5(X-Client-Time+28c1fdd170a5204386cb1313c7077b34f83e4aaf4aa829ce78c231e05b0bae2c) possible referer:
also the same ok works again with this:
the x-client-time and x-client-hash header have to properly match, else you'll get the 1508 error code |
Just so you know, this issue doesn't seem to be Python specific, either, as this Java port of this project: https://github.com/ScienJus/pixiv-parser also got the same issue at the same time (it was working yesterday) |
updated my previous reply: the Authentication works with these headers now again |
oh thanks, I can update my userscript now. |
fix oauth token request for pixiv, fixes #83
My pixivpy was installed with pip, whose version is 3.3.7 |
Maybe pip install pixivpy --upgrade? |
I've tried, it says requirement satisfied and kept in 3.3.7 |
Sorry, I haven't verify and bump the version, so the PyPI is still old version. At this stage, you can install the fix from the source code: pip uninstall pixivpy
git clone https://github.com/upbit/pixivpy.git
cd pixivpy/
pip install [--editable] . After updating PyPi, I will fix and close this issue again. |
Add this in auth method to headers: |
Say thanks for the headers @DaRealFreak, and update your version after closing this issue. |
Sure, and thanks @DaRealFreak :) |
Fixed, bump PyPi version to 3.4.0. Please upgrade API using: $ pip install pixivpy --upgrade
Collecting pixivpy
Downloading https://files.pythonhosted.org/packages/a9/db/0e0b1ca48e184436289631ed2c6fd6313a93409c493c6af3830531780385/PixivPy-3.4.0-py2-none-any.whl
Requirement already satisfied, skipping upgrade: requests in /anaconda/lib/python2.7/site-packages (from pixivpy) (2.13.0)
Installing collected packages: pixivpy
Successfully installed pixivpy-3.4.0 |
换账号login也是同样错误,同设备网页可以登录。
The text was updated successfully, but these errors were encountered: