Gallery-dl: I can't seem to specify my config file in Gallery-dl?

Created on 4 Apr 2020  路  17Comments  路  Source: mikf/gallery-dl

I'm decent with tech but don't really know anything with coding, I'm trying to get gallery-dl to recognize my config file but it doesn't seem to see it?

Why is this?

And the broader question here is how to get gallery-dl to read my config file with my OAuth for Deviant art so I can download without getting API errors.

I've created the client id and the secret, made the file but I don't understand what I am doing wrong.

The screenshot should explain things.

Annotation 2020-04-04 125348

question

Most helpful comment

Alright, looks like I finally got it to work., thanks for the help guys and thank you mikf for creating such a cool program, just found out it even downloads zip and rar files from the gallery too, that's pretty damn cool.

Cheers!

All 17 comments

You're almost doing it right, instead of doing gallery-dl --config config C:\Users\Jason\gallery-dl you'll want to do gallery-dl --config C:\Users\Jason\gallery-dl\config.json

I'd suggest to enable viewing file extensions to make things a bit more obvious, also I don't know if python still has issues with windows paths, but you may have to use forward slashes instead as well, aka: gallery-dl --config C:/Users/Jason/gallery-dl/config.json

I tried that and now I'm getting another error, its asking for a URL? I assume that means a file name?

Not sure.
Annotation 2020-04-04 125348

Well, this tool is for downloading stuff from URLs, yes. So you input the deviantart profiles/posts or whatever site you wanna download from

But how do I know it's recognized my config file?

(as you can tell im used to GUI type programs haha)

Tried a URL and it's still giving me the API error, so I guess that means it is not using my unique API? Sorry if these are dumb questions and the answer is obvious.

Annotation 2020-04-04 125348

Don't worry about the 429 warnings, I've been getting those too lately, deviantart is just shit :p

Unless something changed and it's broken somehow (wouldn't surprise me either)

Ahh, that makes sense. Is there any way to check if my config file was properly recognized though?

You can add --verbose and you should see [deviantart][debug] Using custom API credentials (client-id #####) with the ID you set.

Tried that, I think it's working. Does this look like its using the custom api?

It doesn't seem to match the one in my config file (the token) but I might not be looking at the right thing.

Annotation 2020-04-04 125348

That's too far down to tell, it shows right when you start, anyway I personally found a bug just now as I accidentally nuked my own deviantart application, and now when trying to get a new refresh-token I'm unable to.

anyway your config (at least the deviantart part) should look like this:

        "deviantart": {
            "client-id": "<redacted>",
            "client-secret": "<redacted>",
            "refresh-token": "<redacted>"
        },

god damn.

Its using the default api.

I think my config file is wrong, looking at what you put there.

Can you take a look??

https://pastebin.com/YBJfvAz4

(The XXXX is the token I got from Deviant art. No fields for client-secret and Id.)

Here's how to set up a application on deviantart and how to put it in your config: https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#api-tokens--ids

You'll want to copy those to client-id and client-secret

As for the token, well that part I can't get working myself, used to, but not anymore.
I've made a separate issue for that: https://github.com/mikf/gallery-dl/issues/670

Where do I put them in my config file? I've followed those steps but I just don't understand where I should put them in. Do I just put them below refresh token on my config file?

Like this?

Annotation 2020-04-04 125348

Yes, like this basically, but make sure you get the commas right. Every key-value pair in a block has to end with a comma, except the last one.

It should look like https://github.com/mikf/gallery-dl/issues/669#issuecomment-609068947, and all the other values go under client-secret. (Order doesn't matter, so can they can go anywhere inside the deviantart block)

Alright, looks like I finally got it to work., thanks for the help guys and thank you mikf for creating such a cool program, just found out it even downloads zip and rar files from the gallery too, that's pretty damn cool.

Cheers!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thisisamericalolxdmdrrrrddds picture thisisamericalolxdmdrrrrddds  路  6Comments

mechalincoln picture mechalincoln  路  5Comments

jtara1 picture jtara1  路  6Comments

blackoutworm picture blackoutworm  路  5Comments

w158297 picture w158297  路  4Comments