Skip to content
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

增加PixivLite的Proxy,使API调用不需要代理 #73

Closed
upbit opened this issue Apr 27, 2019 · 2 comments
Closed

增加PixivLite的Proxy,使API调用不需要代理 #73

upbit opened this issue Apr 27, 2019 · 2 comments
Assignees

Comments

@upbit
Copy link
Owner

upbit commented Apr 27, 2019

近日分析了PixivLite免翻墙查看原理,通过代理访问AppAPI接口,解析DNS访问i.pximg.net的CDN,至少原理上是可行的:

https://github.com/upbit/pixivpy/wiki/Proxy-with-PixivLite

但明显PixivLite明文存储了用户名密码(如果你用过PixivLite,可以用这个链接,更换你的用户名试试)

@upbit upbit self-assigned this Apr 27, 2019
@upbit
Copy link
Owner Author

upbit commented Apr 27, 2019

原则上不使用任何代理登录的API,尤其是这种会保存用户信息的。但获取Bearer Token后就无鉴权,并且短期就会失效,还是可以用用的

以后用法就是挂代理先请求login()拿到Bearer Token,然后初始化带proxy的API查询和获取数据。这块估计有时间再来切换

@upbit
Copy link
Owner Author

upbit commented Apr 27, 2019

Fixed in 841d959, please upgrade to 3.3.6

See example_api_proxy.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant