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

[Pixiv] How to set PHPSESSID? #6448

Closed
Tester6893 opened this issue Nov 11, 2024 · 2 comments
Closed

[Pixiv] How to set PHPSESSID? #6448

Tester6893 opened this issue Nov 11, 2024 · 2 comments

Comments

@Tester6893
Copy link

I got the following warning when trying to download a pixiv gallery:
[pixiv][warning] No 'PHPSESSID' cookie set. Can detect only non R-18 'sanity_level' works.

I used oauth:pixiv.

The warning is fairly new and I haven't seen it before. I've found the PHPSESSID cookie, but now I have no idea where I should enter it.
Is there a way to input the PHPSESSID through the command line or any way to set the PHPSESSID at all?

@Tester6893 Tester6893 changed the title How to set PHPSESSID? [Pixiv] How to set PHPSESSID? Nov 11, 2024
@kattjevfel
Copy link
Contributor

You need to add it to extractor.pixiv.cookies, like so:

{
    "extractor": {
        "pixiv": {
            "refresh-token": "<snip>",
            "cookies": {
                "PHPSESSID": "<snip>"
            }
        }
    }
}

@mikf
Copy link
Owner

mikf commented Nov 12, 2024

You could also use --cookies-from-browser or --cookies on command-line.

edit: Cookies guide

The PHPSESSID cookie is only necessary to detect the few, otherwise hidden, "limit_sanity_level_360.png" works (see #4327), which are left out of the mobile API results used by gallery-dl.

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

3 participants