Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
auth() failed #83
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):
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
X-Client-Hash is now getting validated serverside, has to match the passed md5(X-Client-Time+28c1fdd170a5204386cb1313c7077b34f83e4aaf4aa829ce78c231e05b0bae2c)
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
updated my previous reply:
the Authentication works with these headers now again
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:
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