Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

About Pixiv API Change / 关于 Pixiv 的 API 变更 #9

Closed
y-young opened this issue Feb 10, 2021 · 3 comments
Closed

About Pixiv API Change / 关于 Pixiv 的 API 变更 #9

y-young opened this issue Feb 10, 2021 · 3 comments
Projects

Comments

@y-young
Copy link
Owner

y-young commented Feb 10, 2021

We've heard that Pixiv no longer support logging in through username & password (upbit/pixivpy#158), but this change won't bring large effects to this project as for now.
In detail, if you had successfully used Pixiv functions, Nazurin will cache your access_token & refresh_token in database, which can be used to log in even without username & password.
In short, please keep your refresh_token safely and there's nothing to worry about.
If you encountered any related problems, please leave a comment below.


我们已经了解到 Pixiv API 不再允许通过用户名和密码登录(upbit/pixivpy#158),但目前来看此变更不会对本项目造成太大影响
具体来说,如果曾经成功使用过 Pixiv 相关功能,Nazurin 将在数据库中缓存 access_tokenrefresh_token,这两种凭据可单独用于登录而无需用户名和密码
因此只需 妥善保管好数据库中的 refresh_token 即可
如遇到相关问题,请在此 Issue 内留言

@y-young y-young changed the title About Pixiv API Change / 关于Pixiv的API变更 About Pixiv API Change / 关于 Pixiv 的 API 变更 Feb 10, 2021
@roytam1
Copy link

roytam1 commented Feb 10, 2021

and new comers are unable to use now.

@y-young
Copy link
Owner Author

y-young commented Feb 10, 2021

and new comers are unable to use now.

Yes, that seems to be the only inconvenience, unless they've already got a refresh_token. We'll follow future updates on this change.

@y-young y-young added this to Under consideration in Todo Feb 14, 2021
@y-young
Copy link
Owner Author

y-young commented Feb 17, 2021

The author of Pixivpy has released a semi-automatic script to help you obtain a refresh token, see here.
From Nazurin v1.2, you'll be able to use environment variable PIXIV_TOKEN to set refresh token, this option is not required if it is already cached in database.


Pixivpy 的作者发布了一个半自动化脚本来辅助获取 Pixiv refresh token,详见这里
Nazurin 从 1.2 版本开始支持使用环境变量 PIXIV_TOKEN 来设置 refresh token,如果数据库中已经缓存了 refresh token 则无需设置

@y-young y-young moved this from Under consideration to Done in Todo Feb 19, 2021
Repository owner locked and limited conversation to collaborators May 8, 2023
@y-young y-young converted this issue into discussion #77 May 8, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Status: Done
Todo
Done
Development

No branches or pull requests

2 participants