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

Use PHPSESSION not work. #17

Closed
abserari opened this issue Jan 3, 2021 · 12 comments
Closed

Use PHPSESSION not work. #17

abserari opened this issue Jan 3, 2021 · 12 comments
Assignees

Comments

@abserari
Copy link
Contributor

abserari commented Jan 3, 2021

image

when use login by username and password, cookies add a lot. Need to pass more cookies?
image

@NateScarlet
Copy link
Owner

artwork rank not require login, and tested daily by github ci

func TestArtworkRankSimple(t *testing.T) {

@NateScarlet
Copy link
Owner

What you got when run curl https://www.pixiv.net/ranking.php?format=json ?

@abserari
Copy link
Contributor Author

abserari commented Jan 3, 2021

when I use t78e7raoq5ma3q32emf0o68qh514l78c, the PHPSESSIONID from the terminal, it works.
the PHPSESSION is from my edge browser which is not work in the first picture.

I test curl https://www.pixiv.net/ranking.php?format=json, ok .

@abserari
Copy link
Contributor Author

abserari commented Jan 3, 2021

One more question. I couldn't get this url. curl "https://www.pixiv.net/ranking.php?format=json&mode=daily_r18"

But I could get it by browser with my pixiv account is log in.

It means the daily ranking I could get, but not daily_r18.

@NateScarlet
Copy link
Owner

NateScarlet commented Jan 3, 2021

r18 data require login as a account that choose to display r-18 contents in https://www.pixiv.net/setting_user.php

pixiv
pixiv(ピクシブ)は、作品の投稿・閲覧が楽しめる「イラストコミュニケーションサービス」です。幅広いジャンルの作品が投稿され、ユーザー発の企画やメーカー公認のコンテストが開催されています。

@NateScarlet
Copy link
Owner

You can test client login status by

func (c Client) IsLoggedIn() (ret bool, err error) {

@abserari
Copy link
Contributor Author

abserari commented Jan 3, 2021

r18 data require login as a account that choose to display r-18 contents in https://www.pixiv.net/setting_user.php
image

I think I set it true.

And I test the client login status. It is false.
Both get false with login mode and cookies session mode. Is this about reCAPTCHA?
Because I print the response and found that the HTML display about reCAPTCHA.

@NateScarlet
Copy link
Owner

似乎是P站更新了登录检测机制 我研究下

@NateScarlet
Copy link
Owner

现在会检测User-Agent了 我更新下库

@NateScarlet NateScarlet self-assigned this Jan 3, 2021
@NateScarlet
Copy link
Owner

用 0.4.1 应该就行了

@abserari
Copy link
Contributor Author

abserari commented Jan 3, 2021

ok, Default

@NateScarlet
Copy link
Owner

你应该主动登出一次把发在这的 PHPSESSID 过期掉 不然可能你账号可能会被其他人使用

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

No branches or pull requests

2 participants