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

Deviantart - add Story support #1043

Closed
SomeRandomDude870 opened this issue Sep 30, 2020 · 2 comments
Closed

Deviantart - add Story support #1043

SomeRandomDude870 opened this issue Sep 30, 2020 · 2 comments

Comments

@SomeRandomDude870
Copy link

Hi,
there is support the downloading Images from Deviantart.
I would like to be able to download Stories too.
Maybe make it so that it just downloads into a txt file or into a html, so it´s possible to add Stylesheets.

@mikf
Copy link
Owner

mikf commented Oct 6, 2020

By "Stories" do you mean journal entries like https://www.deviantart.com/shimoda7/journal/ARTility-on-Facebook-583755752, because they are already supported?
There is even an option to select between plain text or HTML: extractor.deviantart.journals

@a-washing-machine
Copy link

a-washing-machine commented Oct 10, 2020

Hi,
there is support the downloading Images from Deviantart.
I would like to be able to download Stories too.
Maybe make it so that it just downloads into a txt file or into a html, so it´s possible to add Stylesheets.

I assume you mean literature submissions? Like these: https://www.deviantart.com/josephblakeparker/gallery/52448850/short-stories

These are already supported, and downloaded as html by default.

If you want to download descriptions (because some artists write stories into their image descriptions), that is also supported, you'll need to modify your config file to change the setting.

See here: #189 (comment)

If you don't have a config file yet, here are some general examples:
https://github.com/mikf/gallery-dl/blob/master/docs/gallery-dl.conf
https://github.com/mikf/gallery-dl/blob/master/docs/gallery-dl-example.conf

My own (less elaborate) config-file looks roughly like this:

{
    "extractor":
    {
          "deviantart":
        {
			"cookies": "cookies.txt",
			"refresh-token": "token_obtained_via_oauth_command_goes_here",
			"client-id": "12345",
			"client-secret": "abcdefghijklmnopqrstuvwxyz123",			
			"extra": true,
			"metadata": true,
			"blacklist": "foobar",
            "postprocessors": [{
                "name": "metadata",
                "mode": "custom",
                "format": "{description}\n"
            }]
        }
    }

}

The postprocessors section is used to enable description-download for deviantart. (Perhaps in combination with "metadata": true, not sure.)

The "refresh-token", "client-id", and "client-secret" are used for logging into your own deviantart account, which also significantly speeds up download rates. See here for help: #1029
(This involves "registering an application" through deviantart's developer section. It's very easy to do and the "application" does not actually need to be "published" for you to get the required client_id and client_secret, just "saved".)

Deviantart-cookies are needed for downloading (some?) individual items or scraps marked as mature, you can install a plugin like these which can export cookies for the currently active tab:
https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid
https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/reviews/

EDIT: Added "blacklist": "foobar", because that fixes a bug ( #1056 ) introduced in version 1.15.0 expected to be fixed in 1.15.1

@mikf mikf closed this as completed Oct 15, 2020
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

3 participants