upbit / pixivpy

Pixiv API for Python
https://pypi.org/project/PixivPy3/#files
The Unlicense
1.79k stars 149 forks source link

[Request] API possible to return "phpsessid"? #170

Closed cykac04 closed 3 years ago

cykac04 commented 3 years ago

I need the phpsessid value for parsing notification of pixiv sketch. Only web response has the m3u8 url. App response also has a list but there is no m3u8 url.

Xdynix commented 3 years ago

The phpsessid is only available on website. The App is using OAuth (access_token and refresh_token), and pixivpy is using the App API. So it has no way to do with phpsessid. You should consider pretending to be a browser to send login requests (maybe use Selenium to fill the form and click login button), and then fetch the cookie.

If the Pixiv mobile app cannot do one thing, then pixivpy probably cannot do it either.

upbit commented 3 years ago

Consider simulating the login on the WEB side, and obtain PHPSESSID through cookiejar. If you are not using the WEB login method, it is impossible to obtain the normal PHPSESSID