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

. #1029

Open
curya opened this issue Sep 25, 2020 · 12 comments
Open

. #1029

curya opened this issue Sep 25, 2020 · 12 comments

Comments

@curya
Copy link

curya commented Sep 25, 2020

.

@master-leonardo
Copy link

you don't need to use username and password if you have refresh-token, client-id, client-secret on your config file

@mikf
Copy link
Owner

mikf commented Sep 25, 2020

You can get a new client-id and client-secret by following the steps listed at https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractordeviantartclient-id--client-secret.

For a refresh-token, run gallery-dl oauth:deviantart. Preferably after setting the new client-id and -secret.

@mikf
Copy link
Owner

mikf commented Sep 25, 2020

You've forgotten a comma , after one of the values you added to gallery-dl.conf. Make sure each line in a block locks like "name": "value", with a , at the end, except the very last one. Try using an online JSON validator to identify the "faulty" place.

It should look something like this

        "deviantart":
        {
            "client-id": "",
            "client-secret": "",
            "other settings": ""
        },

The files still downloaded though, so I'm not sure what's going on...

There is already a client-id and -secret embedded in gallery-dl, but you'll get frequent "429 Too Many Requests" errors with them. Getting your own is usually better.

@mikf
Copy link
Owner

mikf commented Sep 25, 2020

Put a comma after wait-min:

        "deviantart":
        {
            "extra": true,
            "flat": true,
            "folders": false,
            "journals": "html",
            "mature": true,
            "metadata": true,
            "original": true,
            "quality": 100,
            "wait-min": 0,
            "client-id": "12345",
            "client-secret": "678910"
        },

@mikf
Copy link
Owner

mikf commented Sep 25, 2020

The DeviantArt OAuth API doesn't work with username and password, only refresh- and access-tokens. Getting a custom client-id and -secret should theoretically not be necessary, but the API rate limit makes downloading without unbearably slow (429 Too Many Requests etc).

@Scripter17
Copy link
Contributor

Because downloading mature scraps requires an actual login cookie again, would this be worth revisiting?

@rautamiekka
Copy link
Contributor

rautamiekka commented Jan 1, 2023

Because downloading mature scraps requires an actual login cookie again, would this be worth revisiting?

Link that doesn't work ? Cuz I downloaded many galleries (and by favs) in the past month (and just last night) no problem with 2d7d80d, and I've both the logins and API creds (and the tokens, of course) in the config.

@Scripter17
Copy link
Contributor

2a1cb40 says a login is once again required for mature scraps (which messed up #1776)

And neither the project readme nor the example config mentions deviantart supporting username and password fields. So idk

Maybe deviantart has yet again fixed this very stupid problem and I haven't noticed. I didn't check before suggesting this since deviantart doesn't tend to fix problems with their site

@mikf
Copy link
Owner

mikf commented Jan 1, 2023

Here's a NSFW example were gallery-dl only downloads 10 files without cookies:
https://www.deviantart.com/chain-man/gallery/scraps

Guess I'll look into adding login support with username & password. At least on my end there is currently not a captcha by default.

@mikf mikf reopened this Jan 1, 2023
mikf added a commit that referenced this issue Jan 3, 2023
re-login when getting prematurely logged out by dA
is missing at the moment
@mikf
Copy link
Owner

mikf commented Jan 3, 2023

Login support for scraps got added in 77df8d3, but there is no check and automatic re-login when dA decides to do an unwanted logout. Yet.

@crkinard
Copy link

crkinard commented May 2, 2023

Is there any way to auth with DeviantArt (to get watcher only images) without using a refresh-token? I am running on a headless Linux server so there is no browser on it.

@rautamiekka
Copy link
Contributor

Is there any way to auth with DeviantArt (to get watcher only images) without using a refresh-token? I am running on a headless Linux server so there is no browser on it.

Did you read the config documentation ? All the necessary exist. You should have all 3 logins there to be done with it and let the app do the deciding, no point in not.

@curya curya changed the title DeviantArt Login In Config? . Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants