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

[Kemono] How do I download all favorited artists? #6676

Closed
irrya opened this issue Dec 16, 2024 · 2 comments
Closed

[Kemono] How do I download all favorited artists? #6676

irrya opened this issue Dec 16, 2024 · 2 comments
Labels

Comments

@irrya
Copy link

irrya commented Dec 16, 2024

Hello,

Thanks for your work on this wonderful tool.

I tried using this to download my favorite artists from kemono, however it gives me the error [gallery-dl][error] Unsupported URL :

gallery-dl --cookies "D:/_gallery-dl/kemono.su_cookies.txt" "https://kemono.su/account/favorites/artists"

The relevant part of my .conf file looks like this (login info omitted):

    "kemonoparty":
    {
        "username": "<username>",
        "password": "<password>",

        "cookies"      : "D:/_gallery-dl/kemono.su_cookies.txt"
        "announcements": false,
        "comments"     : false,
        "dms"          : false,
        "duplicates"   : false,
        "favorites"    : "artist",
        "files"        : ["attachments", "file", "inline"],
        "max-posts"    : null,
        "metadata"     : false,
        "revisions"    : false,
        "order-revisions": "desc"
    },

The tool works when I provide a simple URL to a specific artist, but I'd like to download all of my favorited ones. What is the proper way I should be downloading favorited artists? Thank you for any help!

@irrya
Copy link
Author

irrya commented Dec 16, 2024

Nevermind, I figured it out. You can use:

gallery-dl "https://kemono.su/favorites"

to successfully download your favorited artists. Make sure to have your cookies file already prepared, and that the cookies.txt is referenced in the config file.

For future reference for anyone else wanting to do the same thing as me, I changed the kemonoparty section of my config to reflect this:

    "kemonoparty":
    {
        "username": "",
        "password": "",

        "cookies"      : "D:/_gallery-dl/kemono.su_cookies.txt",
        "announcements": false,
        "comments"     : false,
        "dms"          : false,
        "duplicates"   : false,
        "favorites"    : "artist",
        "files"        : ["attachments", "file", "inline"],
        "max-posts"    : null,
        "metadata"     : true,
        "revisions"    : false,
        "order-revisions": "desc",
        "directory": ["{category}", "{service}", "{username}", "{date:%Y-%m-%d} - {title}"],
            "postprocessors": 
            [
                {
                "name": "metadata",
                "event": "post",
                "filename": "{id}-{title}Metadata.txt",
                "format": "{content}\n{embed[url]:?/\n/}",
                "filter": "embed.get('url') or re.search(r'(?i)(gigafile|xgf|1drv|mediafire|mega|google|drive)', content)"
                }
            ]
    },

This also renames the artist directories to show the artist username rather than the user id, and the post directories to include the upload date. Just a small quality of life improvement I borrowed from someone else.

If anyone else has suggestions to improve this in other ways, please let me know.

@mikf
Copy link
Owner

mikf commented Dec 18, 2024

however it gives me the error [gallery-dl][error] Unsupported URL :

b6b1008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants