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

I cannot figure out how to get Pixiv to work; issues with finding correct token #6661

Closed
Curiorodent opened this issue Dec 13, 2024 · 2 comments
Labels

Comments

@Curiorodent
Copy link

So I'm trying to download from Pixiv. I am currently stuck at the very start of the whole thing; getting my ouath token.

I typed gallery-dl oauth:pixiv, and got directed to the Pixiv login page. Logged in with my account and hit a white screen. When I opened up the Web Dev tools, there was no callback option in the area. What am I doing wrong?

I also tried; logging in on pop-up URL/pasting it in manually, then going to the artist's pages and trying to find a callback code there, which of course was not the actual token. I'm not sure at all what to do.

If anyone can walk me through like I'm a newborn deer, I'd be so very grateful.

@mikf
Copy link
Owner

mikf commented Dec 19, 2024

Logged in with my account and hit a white screen. When I opened up the Web Dev tools

You are supposed to open your browser's Web Dev tools before pressing the login button

1) Open your browser's Developer Tools (F12) and switch to the Network tab
2) Login

https://github.com/mikf/gallery-dl/issues?q=is%3Aissue+label%3Aoauth+is%3Aclosed+pixiv

#5754 (comment)

@mikf mikf added the oauth label Dec 19, 2024
@Curiorodent
Copy link
Author

Thank you! I managed to get it figured out. That was so helpful! Thank you again for taking the time to help me out with this.

For anyone in the future, who might not be as tech savy as me, here's what I did.

I'm using FireFox

I requested that gallery-dl access my Pixiv bookmarks, which prompted the oauth token command. Put that in, and then it popped up the page for my account login. On that page, I opened up the Web Devloper Tools (located underneath "More Tools"). Clicked on Network tab, and lowered it to be half of my screen. Logged into Pixiv, and at the bottom, in red, was the callback. On the details panel on the right, the topmost part of the area had the code; it starts with "app-api". Copied and pasted into my cmd line, and it gave me the refresh token. Put in my bookmarks URL logged in, and it began to work.

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

No branches or pull requests

2 participants