Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.55k stars 216 forks source link

Pixiv login failed. API changed. #2263

Closed ghost closed 3 years ago

ghost commented 3 years ago

see https://github.com/upbit/pixivpy/issues/158 Pixiv change its login API. this program can't login pixiv too.

markedone66 commented 3 years ago

Im having the same problem: [15:20:02.159][Info] [www.pixiv.net] Logging in... [15:20:03.222][Warning] [www.pixiv.net] No OAuth2 token type received: {"has_error":true,"errors":{"system":{"message":"Invalid grant_type parameter or parameter missing","code":1508}},"error":"invalid_grant"} [15:20:03.222][Info] [www.pixiv.net] Login finished: failure. using email and a new password with special chars too

markedone66 commented 3 years ago

Any news yet? :(

ghost commented 3 years ago

I've just recently encountered this issue myself, not really much we can do except for a hotfix. As in for news, it seems the developer has recognized the issue, but hasn't pushed out anything yet.

Bionus commented 3 years ago

@op8867555 would you be open to making a PR with your change if it's working? That seems to also be the workaround suggested in pixivpy (using the refresh token forever).

op8867555 commented 3 years ago

@Bionus I just rebase my change and made a PR for it. It is somehow working but I'm not sure about it.

Bionus commented 3 years ago

Thanks! It should now be fixed in the Nightly version, as long as you find a way to get an access and a refresh token.

If you've used Pixiv with Grabber before, they should already be pre-filled. Otherwise, this script should do the trick: https://gist.github.com/upbit/6edda27cb1644e94183291109b8a5fde

HelpSeeker commented 3 years ago

It might be a good a idea to mention this script somewhere in the documentation, because it took me a quite a while to figure out what these tokens were and how to get them.