Replies: 2 comments
-
|
So, I'm actually working toward a YT video on this exact topic (setting up everything from scratch). The short answer, though, is a couple of lines in your configuration file(s). For each extractor (Twitter, Patreon, etc), you'll need to set up the "base directory" item to be the default for where to 'start' the file stores. I use the name of the site, to keep things simple. So, for me it might be a line in the extractor for each,
. (<-- This is the Windows means of doing so. According to the docs, you should be able to replace the '\' with a '/', but I've not gotten that to work consistently, so I still use '\' instead.) Then, under that, you'll want to set up the "directory" line. This is where each account's downloads will go. This is a bit more tricky, as Gallery-DL uses the response information for each site, which can vary WIDELY. It'll generally be
or something similar. To find what variables you can access, you'll need to use
That'll give you back a full list of all the variables used for that site/extractor. Just look through the list for the user's name/ID/handle/whatever, and use that. I HIGHLY recommend you look at the sample .conf file given on the main page ( https://github.com/mikf/gallery-dl/blob/master/docs/gallery-dl-example.conf ). It can give you a lot of quick insights on how to download and use gallery's mighty suite of tools. If it helps, the full configuration doc is here: https://gdl-org.github.io/docs/configuration.html but it's most useful in conjunction with the sample config file, because unless you're an experienced programmer, some of the options won't make any sense on their own. |
Beta Was this translation helpful? Give feedback.
-
|
This also gives some of the same ideas about breaking out into directory structures for sites and users and such. #7578 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I current have folder location and everything being download into it. I wanted to know how can I make it so the it goes in to Twitter, Patreon or something else then put the artist in to it. Where would I put that in the code?
Twitter
-- User 1
-- User 2
Patreon
-- Artist 1
-- Artist 2
etc.
{ "extractor": { "base-directory": "/Gallery-DL/filez/", "parent-directory": false, "postprocessors": null, "archive": null, "cookies": null, "cookies-update": true, "proxy": null, "skip": true, "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36", "retries": 4, "timeout": 30, "verify": true, "fallback": true, "sleep": 0, "sleep-request": 0, "sleep-extractor": 0, "path-restrict": "auto", "path-replace": "_", "path-remove": "\\u0000-\\u001f\\u007f", "path-strip": "auto", "path-extended": true, "extension-map": { "jpeg": "jpg", "jpe": "jpg", "jfif": "jpg", "jif": "jpg", "jfi": "jpg" }, "bluesky": { "cookies": ["firefox"], "filename": "{createdAt[:19]}_{post_id}_{num}.{extension}", "directory": ["{category}", "{author[handle]}"], "include": "avatar,media", "reposts": false, "retweets": false, "original": true, "cookies-update": true }, "deviantart": { "cookies": ["firefox"], "client-id": null, "client-secret": null, "refresh-token": null, "auto-watch": false, "auto-unwatch": false, "comments": false, "extra": false, "flat": true, "folders": false, "group": true, "include": "gallery", "journals": "html", "jwt": false, "mature": true, "metadata": false, "original": true, "pagination": "api", "public": true, "quality": 100, "wait-min": 0 }, "e621": { "cookies": ["firefox"], "username": null, "password": null }, "furaffinity": { "cookies": ["firefox"], "username": null, "password": null, "descriptions": "text", "external": false, "include": "gallery,scraps", "layout": "auto" }, "instagram": { "cookies": ["firefox"], "api": "rest", "include": "posts", "order-files": "asc", "order-posts": "asc", "previews": false, "sleep-request": [6, 12], "videos": true }, "pixiv": { "cookies": ["firefox"], "refresh-token": null, "include": "artworks", "embeds": false, "metadata": false, "metadata-bookmark": false, "tags": "japanese", "ugoira": true }, "tumblr": { "cookies": ["firefox"], "api-key": null, "api-secret": null, "avatar": false, "external": false, "inline": true, "posts": "all", "offset": 0, "original": true, "reblogs": true }, "twitter": { "cookies": ["firefox"], "username": null, "password": null, "cards": false, "conversations": false, "pinned": false, "quoted": false, "replies": true, "retweets": false, "strategy": null, "text-tweets": false, "twitpic": false, "unique": true, "users": "user", "videos": true }, "weasyl": { "cookies": ["firefox"], "api-key": null, "metadata": false }, "kemonoparty": { "cookies": ["firefox"], "api-key": null, "metadata": false, "postprocessors": [ { "name": "metadata", "event": "post", "filename": "{id}_{title}_{num:>02}.{extension}" } ] }, "patreon": { "cookies": ["firefox"], "filename": "{filename}.{extension}", "directory": ["{creator[full_name]}"], "files": ["images", "image_large", "attachments", "postfile", "content"], "postprocessors": ["content"] } }, "downloader": { "filesize-min": null, "filesize-max": null, "mtime": true, "part": true, "part-directory": null, "progress": 3, "rate": null, "retries": 4, "timeout": 30, "verify": true, "http": { "adjust-extensions": true, "chunk-size": 32768, "headers": null, "validate": true }, "ytdl": { "format": null, "forward-cookies": false, "logging": true, "module": null, "outtmpl": null, "raw-options": null } }, "output": { "ansi": true, "fallback": true, "mode": "auto", "private": false, "progress": true, "shorten": true, "skip": true, "stdin": null, "stdout": null, "stderr": null, "log": "[{name}][{levelname}] {message}", "logfile": null, "errorfile": null, "unsupportedfile": null, "colors": { "success": "1;33", "skip": "2", "debug": "0;37", "info": "1;37", "warning": "1;33", "error": "1;31" } } }Beta Was this translation helpful? Give feedback.
All reactions