-
Notifications
You must be signed in to change notification settings - Fork 149
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
pixiv seems not allowing username/password login now #158
Comments
background information: In pixiv android Version 5.0.234 in 2021-02-08, there is a line:
and for testing, I tried to install 5.0.220.1 apk and tried to login, and it pops out custom browser window and jumps to pixiv standard login form. |
a cross reference is found: #140 (comment) |
I encountered the same problem
I want to use |
they're not exist in cookies or IndexedDB or Local Storage. |
In my project I had to revert back to using the Ajax API. The problem is that the I think that as long as you have a refresh token, you can keep using it, but getting one is tricky since you have to login with the mobile app and sniff traffic to get it. |
If password authentication is disabled, is there no choice but to scrape with BeautifulSoup from now on? Unbelievable |
Last year, you said that you are trying not to register with a leaked password, but you are also considering methods such as multi-factor authentication, so it is time to think about some fundamental measures. It may be. (Link to Japanese) |
See <upbit/pixivpy#158>.
Pixiv now follows RFC7636. We won't be able to use (old) password login again, but there is a way to automate token retrieval without traffic sniffing. I've implemented a simple script to retrieve access/refresh tokens. Right now it requires single manual step inspecting dev console, but in general, entire flow could be fully automated using browser extensions: you can add request handler and extract |
请问手机端能拿到吗 pc 的试了拿到code后就过不去了 开了全局 |
如果能输出code,可以参考requests的代理配置,对95行的post请求增加代理 |
都试了才来打扰😂 |
试试换个代理?这个和ZipFile的原始脚本一样,都用requests直接请求的。或者试下 Mapaler 的GUI工具 ps: 手机端没试过,如果你用term跑python应该可以;纯浏览器会打开app,无法拦截code |
@yzwik 手机端用浏览器获取code会打开P站APP,除非你把P站APP卸载掉,自己写一个注册pixiv协议的APP来获取code。 |
可以通过 pixivpy bypass SNI 的方式,先获取 API 的真实 IP,然后直接请求,就不需要代理了。 |
确实是代理的问题 换了个节点解决😂 感谢大佬帮助 |
* Upgrade Ktor to 1.5.2 * Refactoring * Fix COPY * Downgrade KMongo due to NoClassDefFoundError * Fix serialization error * Revert _id renaming * Replace type-unsafe mongo java binding * Replace write with File#writeBytes * Update paths * Fix POST data handling * Set stella log definition * Fix id reference * Fix null type * Revert to use GlobalScope * Add HttpClient logging * Implement REFRESH_TOKEN based Pixiv Auth upbit/pixivpy#158 * Refresh last token * Refactoring * Fix Nijie login
如果是有reCAPTCHA的话那就不可能全自动了吧 不过cookie不是太快过期的话倒也不太影响使用 |
I have written a library/CLI based on this script to get tokens headlessly in selenium. |
server returning JSON:
The text was updated successfully, but these errors were encountered: