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 use? #1192

Closed
reiggs opened this issue Dec 21, 2020 · 14 comments
Closed

[Pixiv] How to use? #1192

reiggs opened this issue Dec 21, 2020 · 14 comments

Comments

@reiggs
Copy link

reiggs commented Dec 21, 2020

I'm new at using this software and using commands.

I was trying to use mainly for Twitter and Pixiv. Twitter works perfectly fine but when trying Pixiv I get this:
"[pixiv][info] Logging in as None
[pixiv][error] AuthenticationError: Invalid or missing login credentials"

Do I have to have to log in with my credentials through cmd or is there something else I'm missing?
image

@wankio
Copy link
Contributor

wankio commented Dec 21, 2020

paste this into your config

   "pixiv":
        {
                 
            "username": "here",
            "password": "here",
 	    "ugoira": true
}
          

@kattjevfel
Copy link
Contributor

You can also use gallery-dl --username asdf --password asdf, as seen in the help page:

Authentication Options:
  -u, --username USER       Username to login with
  -p, --password PASS       Password belonging to the given username

@reiggs
Copy link
Author

reiggs commented Dec 22, 2020

You can also use gallery-dl --username asdf --password asdf, as seen in the help page:

Authentication Options:
  -u, --username USER       Username to login with
  -p, --password PASS       Password belonging to the given username

For you username is do you enter your ID

paste this into your config

   "pixiv":
        {
                 
            "username": "here",
            "password": "here",
 	    "ugoira": true
}
          

So I did edit the config file but it's still giving me the same problem. I'll attach some screenshots.
image
image
ss

Sorry I'm still pretty new to this

@left1000
Copy link

left1000 commented Dec 22, 2020

yeah, uh, it's not possible to login to pixiv, as such it's not possible to use gallery-dl on pixiv
I've got the same problem:

[urllib3.connectionpool][debug] Starting new HTTPS connection (1): oauth.secure.pixiv.net:443
[urllib3.connectionpool][debug] https://oauth.secure.pixiv.net:443 "POST /auth/token HTTP/1.1" 400 299
[pixiv][error] AuthenticationError: Invalid or missing login credentials

It used to work, I just logged in via webbrowser (proving that my login worked at all), not sure what the issue is, either having an @ in all the usernames or something else? not sure?

@reiggs
Copy link
Author

reiggs commented Dec 22, 2020

yeah, uh, it's not possible to login to pixiv, as such it's not possible to use gallery-dl on pixiv
I've got the same problem:

[urllib3.connectionpool][debug] Starting new HTTPS connection (1): oauth.secure.pixiv.net:443
[urllib3.connectionpool][debug] https://oauth.secure.pixiv.net:443 "POST /auth/token HTTP/1.1" 400 299
[pixiv][error] AuthenticationError: Invalid or missing login credentials

It used to work, I just logged in via webbrowser (proving that my login worked at all), not sure what the issue is, either having an @ in all the usernames or something else? not sure?

Ah that's a shame

@left1000
Copy link

well I'm a novice myself, so the issue might be fixable, it used to work fine... as recently as like 2 months ago, not sure what changed?

@kattjevfel
Copy link
Contributor

You can also use gallery-dl --username asdf --password asdf, as seen in the help page:

Authentication Options:
  -u, --username USER       Username to login with
  -p, --password PASS       Password belonging to the given username

For you username is do you enter your ID

You use your username, like so:

        "pixiv": {
            "filename": "{filename}.{extension}",
            "username": "kattus",
            "password": "<nope>",
            "ugoira": true
        },

yeah, uh, it's not possible to login to pixiv, as such it's not possible to use gallery-dl on pixiv
I've got the same problem:

[urllib3.connectionpool][debug] Starting new HTTPS connection (1): oauth.secure.pixiv.net:443
[urllib3.connectionpool][debug] https://oauth.secure.pixiv.net:443 "POST /auth/token HTTP/1.1" 400 299
[pixiv][error] AuthenticationError: Invalid or missing login credentials

It used to work, I just logged in via webbrowser (proving that my login worked at all), not sure what the issue is, either having an @ in all the usernames or something else? not sure?

Works here, are you using a bat script or something, makes me think of #1191.

katt@main ~ » gallery-dl --verbose https://www.pixiv.net/en/artworks/86434527
[gallery-dl][debug] Version 1.16.1-dev
[gallery-dl][debug] Python 3.9.1 - Linux-5.10.2-zen1-1-zen-x86_64-with-glibc2.32
[gallery-dl][debug] requests 2.25.1 - urllib3 1.25.10
[gallery-dl][debug] Starting DownloadJob for 'https://www.pixiv.net/en/artworks/86434527'
[pixiv][debug] Using PixivWorkExtractor for 'https://www.pixiv.net/en/artworks/86434527'
[pixiv][info] Logging in as kattus
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): oauth.secure.pixiv.net:443
[urllib3.connectionpool][debug] https://oauth.secure.pixiv.net:443 "POST /auth/token HTTP/1.1" 200 407
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): app-api.pixiv.net:443
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/illust/detail?illust_id=86434527 HTTP/1.1" 200 640
[pixiv][debug] Using download archive '/mnt/jupiter/Temp/gallery-dl/archives/pixiv.sqlite3'
[pixiv][debug] Active postprocessor modules: [ExecPP, UgoiraPP]
/mnt/jupiter/Temp/gallery-dl/pixiv/944707 yuri_nayuta/86434527_p0.jpg

mikf added a commit that referenced this issue Dec 22, 2020
@mikf
Copy link
Owner

mikf commented Dec 22, 2020

Or maybe it's the same as #1069 and gallery-dl --clear-cache solves it?

@reiggs
Your config file isn't at one of the places listed here, so gallery-dl doesn't automatically load it and doesn't have your Pixiv credentials to login ([pixiv][info] Logging in as None)

@left1000
Copy link

left1000 commented Dec 23, 2020

I've tried --clear-cache and I've tried --username

Thing is, I don't have a username on pixiv, most people don't, they have email addresses. So when I put my email address in as a username it doesn't work because it's maybe not expecting an @?

So, yeah, if I somehow had a username that wasn't an email address, maybe it works fine, that's what it looks like in your kattus example. That's not a likely use case though.

@UnclassifiedX
Copy link

UnclassifiedX commented Dec 23, 2020

How I use the pixiv extractor is having a config.json that looks like this:

Screenshot (4)

You're username is user_ (whatever comes after)

Screenshot (5)

Then running gallery-dl --config config.json [URL] inside a cmd prompt where the json is located will start the process.

Hope this helps, the problem I originally had was using my actual username and not user_XXXX

@left1000
Copy link

left1000 commented Dec 24, 2020

I do think that my UI used to look like that eons ago, but now? it just shows my fake incorrect username with no user_ in front of it.

edit: I went and viewed my profile, which gives the number by which other people find my profile, but user_99999 doesn't solve the problem either.

edit2: I guess it would help if instead of invalid credentials it would say something more specific about what was wrong :-/

@UnclassifiedX
Copy link

A bit strange since this is the current UI when logging into the site.

@left1000
Copy link

left1000 commented Dec 24, 2020

Hahahaha everything I said was pure trash!

My password was insecure and in need of updating, on the website I clicked not now over and over and over.

That was the step choking gallery-dl it didn't know what to do with an optional warning you can skip past.

I changed my password and pixiv on gallery-dl works great now :-p

What I thought must've been my "fake" username was in fact the valid real username. However since the gallery-dl error message was so vague I assumed my username or password were wrong, not that gallery-dl was choking on an optional popup message.

This also explains why my config file went from working to not working (without my username or password changing).

edit:

Hopefully either what @UnclassifiedX said or the much stupider problem and solution that I had will help @reiggs

@wankio
Copy link
Contributor

wankio commented Dec 24, 2020

you should using pip version, i'm usually type gallery-dl (can be shorten) so default config folder is :
C:\Users[username]\gallery-dl

I've tried --clear-cache and I've tried --username

Thing is, I don't have a username on pixiv, most people don't, they have email addresses. So when I put my email address in as a username it doesn't work because it's maybe not expecting an @?

So, yeah, if I somehow had a username that wasn't an email address, maybe it works fine, that's what it looks like in your kattus example. That's not a likely use case though.

i have many account and have their own username lol, i can login use that username too : @username
you can just create new account to test

@mikf mikf closed this as completed Jan 9, 2021
@kattjevfel kattjevfel mentioned this issue Jan 12, 2021
Closed
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

6 participants