mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.66k stars 880 forks source link

Can't login into Sankaku Complex! #5722

Closed ForxBase closed 1 week ago

ForxBase commented 2 weeks ago

I'm providing the correct username and password, but I get the message "[sankaku][error] AuthenticationError: invalid login or password" every time.

What can I do? Is this a bug?

I also tried downloading from a gallery without logging in, but only a few images got downloaded although many more images are visible without logging in. I got this message: [sankaku][warning] Login required to download 'contentious_content' posts

mikf commented 2 weeks ago

It might be the case that sankaku now uses some sort of multi-factor authentication for certain accounts when logging in, which isn't supported (yet). I can still login with a relatively new account with unverified email, but who knows.

Could you do another login attempt with --write-pages and post the last file it generated (01_https_capi-v2.sankakucomplex.com_auth_token.txt) here? (replace tokens etc first)

ForxBase commented 1 week ago

It might be the case that sankaku now uses some sort of multi-factor authentication for certain accounts when logging in, which isn't supported (yet). I can still login with a relatively new account with unverified email, but who knows.

Could you do another login attempt with --write-pages and post the last file it generated (01_https_capi-v2.sankakucomplex.com_auth_token.txt) here? (replace tokens etc first)

I tried again with a new account and still failed to login, same error message. Can you give me a step by step of what you told me to do? I'm not sure how to do these steps.

mikf commented 1 week ago

It might be the case that sankaku now uses some sort of multi-factor authentication for certain accounts when logging in, which isn't supported (yet). I can still login with a relatively new account with unverified email, but who knows. Could you do another login attempt with --write-pages and post the last file it generated (01_https_capi-v2.sankakucomplex.com_auth_token.txt) here? (replace tokens etc first)

I tried again with a new account and still failed to login, same error message. Can you give me a step by step of what you told me to do? I'm not sure how to do these steps.

Run the same command as before and also pass --write-pages as option. This will generate a file named 01_https_capi-v2.sankakucomplex.com_auth_token.txt in your current working directory. Please post its contents here.

ForxBase commented 1 week ago

Tried these two commands:

gallery-dl --write-pages -u "" -p "" "https://chan.sankakucomplex.com/en/?tags=bellmav"

gallery-dl --write-pages -o "username=" -o "password=" "https://chan.sankakucomplex.com/en/?tags=bellmav"

Error:

[sankaku][info] Logging in as [sankaku][error] AuthenticationError: invalid login or password

image

ForxBase commented 1 week ago

It might be the case that sankaku now uses some sort of multi-factor authentication for certain accounts when logging in, which isn't supported (yet). I can still login with a relatively new account with unverified email, but who knows. Could you do another login attempt with --write-pages and post the last file it generated (01_https_capi-v2.sankakucomplex.com_auth_token.txt) here? (replace tokens etc first)

I tried again with a new account and still failed to login, same error message. Can you give me a step by step of what you told me to do? I'm not sure how to do these steps.

Run the same command as before and also pass --write-pages as option. This will generate a file named 01_https_capi-v2.sankakucomplex.com_auth_token.txt in your current working directory. Please post its contents here.

Can you update with a reply based on my most recent reply? Thanks.

mikf commented 1 week ago

[sankaku][error] AuthenticationError: invalid login or password

"invalid login or password" is the complete error message returned by Sankaku itself, so it's your credentials that are wrong.

gallery-dl --write-pages -u "" -p "" "https://chan.sankakucomplex.com/en/?tags=bellmav"

Just to make sure: You aren't really using an empty username & password or the literal <username> & <password>, right?

ForxBase commented 1 week ago

[sankaku][error] AuthenticationError: invalid login or password

"invalid login or password" is the complete error message returned by Sankaku itself, so it's your credentials that are wrong.

gallery-dl --write-pages -u "" -p "" "https://chan.sankakucomplex.com/en/?tags=bellmav"

Just to make sure: You aren't really using an empty username & password or the literal <username> & <password>, right?

No, here's how it looks. And the password and username are 100% correct I checked multiple times on the browser.

3456

mikf commented 1 week ago

Don't put your name and password between < and >.

If your credentials are MYNAME and MYPASS, you need to pass them to gallery-dl as -u MYNAME -p MYPASS and maybe enclose them in quotes if they contain special characters (-u "MYNAME" -p "MYPASS").

ForxBase commented 1 week ago

Don't put your name and password between < and >.

If your credentials are MYNAME and MYPASS, you need to pass them to gallery-dl as -u MYNAME -p MYPASS and maybe enclose them in quotes if they contain special characters (-u "MYNAME" -p "MYPASS").

Thank you! This solved my problem.