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

[Site Feature Request] Process follow list on Mastodon sites like on Twitter #1891

Closed
MistressAshai opened this issue Sep 25, 2021 · 3 comments

Comments

@MistressAshai
Copy link

On Twitter, it is possible to give gallery-dl a url to a user's following page and have it go through every followed account's media files.

Would it be possible to do the same with Mastodon instances?

@mikf
Copy link
Owner

mikf commented Sep 27, 2021

Extractor for a user's following page got added (9377543), although it can only download from Mastodon instances it knows about, even though the listed users can be from anywhere in the Fediverse.

Do you need support for any other user lists?

@MistressAshai
Copy link
Author

I have a few niche instances that I follow, would it be possible to add them in the config file?

I know you can definitely add instances to gallery-dl's config and have it work, but would it need to be adjusted for the following extractor?

@mikf
Copy link
Owner

mikf commented Sep 30, 2021

You can add new mastodon instances by running gallery-dl oauth:mastodon:instance.tld to get an access-token for that instance (you need an account for that) and adding an entry to extractor.mastodon in your config file.

For example for https://tabletop.social/, you'd run

  • gallery-dl oauth:mastodon:tabletop.social (or gallery-dl oauth:mastodon:https://tabletop.social/, both do the same)
  • save the access token value you get (it also gets written to cache, but it doesn't hurt to also add it directly in your config file)
  • add a new entry for the instance
{
    "extractor": {
        "mastodon": {
            "tabletop.social": {
                "root"         : "https://tabletop.social",
                "access-token" : "***"
            }
        }
    }
}

You wont get any errors if you don't do any of this, but gallery-dl is then going to silently ignore any followed users from instances it doesn't know about. URLs from unknown instances can be written to a file with --write-unsupported FILENAME

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

No branches or pull requests

2 participants