-
-
Notifications
You must be signed in to change notification settings - Fork 996
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
[Q] Do I need session cookies if I use OAuth ? #1276
Comments
You need your browser cookies to download mature scraps since DA's system requires it. Ideally, this is what you'd need to get everything from a DA scrape:
Your extractor should look similar to this (relevant info is will have ** surrounding the line **)
|
DeviantArt's OAuth API has no endpoint to fetch scraps, so gallery-dl uses the website itself for that and you need to be logged in (with cookies) to be able to access mature-rated content that way. This is far from optimal or user friendly, but there doesn't appear to be another way. The exported cookies become invalid rather fast when you keep browsing dA with the same login session. You could try opening a private browser window, registering a new account, logging in with "Keep me logged in" enabled, enabling "Display Mature Content" in the dA settings, exporting the cookies from that, and then never touching that account again. |
Thanks for your answer Biznizz, but I already knew that and everything was correctly setup, sorry if I explained poorly.
Ho, I didn't know cookies could also expire based on the number of request you do, that explain why it expires so fast now I scrap like 10 artists. I have a question then, what is the purpose of the "cookies-update" set to true in my config file for DA ? |
It's not number of requests, but using the same session in multiple locations at once (browser + gallery-dl), combined with how dA handles its session cookies, that causes the session to become invalid for gallery-dl ... I think.
|
Thank you for the clarification. Just an idea like that, would it be feasible in theory to indicate the internet browser folder you use, and extract the most recent session cookie ? Sorry if it's a stupid question, just being curious. |
If either condition is met: the browser
The 1st one has the problem that with SQLite3 the app's likely using a sorta a cache for uncommitted data, which if contains the up-to-date cookies will insta-invalidate the existing ones committed into the db. ^ I'm not 101-sure but it seems the cache's likely to be used even when shutting down the app, so it's still not 100% certain you'll get the up-to-date cookies, unless gallery-dl runs the cache file separately. |
There is There was a time when mature scraps could be downloaded without cookies (#1777), but that is again no longer possible (#3129). |
I setup OAuth for DA, but I still get a warning message telling me it can't scratch mature content because of no session ID. Isn't it the point to use OAuth, to not use cookies everytime ?
I use the suggested firefox extension to get a .txt file with cookies (btw, can't find the difference between the button for "deviantart.com" and "www.deviantart.com"), but it now gets invalid in like 24 hours wich is really annoying.
The text was updated successfully, but these errors were encountered: