Open addianto opened 3 years ago
I'm just spitballing, I didn't know pixiv existed until I saw this bot. I saw that on pixivpy's README, there is this message:
Is this what you're looking for?
I'm just spitballing, I didn't know pixiv existed until I saw this bot. I saw that on pixivpy's README, there is this message:
Is this what you're looking for?
Yes. That one.
I have tried the first workaround to obtain the refresh_token
and I was able to get the refresh_token
successfully.
Afterward, I tried to replace the credentials used during authentication (see: botofculture/pixiv.py
line 33 - 34 on master
branch) with api.login(refresh_token=THE_REFRESH_TOKEN
. But it still does not work. 💦
So.. I guess the issue is in the Pixiv API library. This project uses pixivpy-async instead of pixivpy that suggested the workarounds you mentioned before.
Ahh, I see. The best straightforward solution I can see at this point would be to use Aiohttp for raw requests to the API.
As mentioned at https://github.com/upbit/pixivpy/issues/158, username/password-based login does not work since the beginning of this year (2021). The authentication API now enforces OAuth2 and token-based authentication. Since I am not really versed with OAuth2 or modern Web authentication, a helping hand would be nice. :))
One example of log produced from current instance of the bot: