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

[Mastodon] No suitable extractor despite adding instance to config #3109

Closed
ghost opened this issue Oct 26, 2022 · 9 comments
Closed

[Mastodon] No suitable extractor despite adding instance to config #3109

ghost opened this issue Oct 26, 2022 · 9 comments

Comments

@ghost
Copy link

ghost commented Oct 26, 2022

Upon running the following

gallery-dl --config='~/.config/gallery-dl/config.json' 'https://im-in.space/web/@[email protected]/media'

This is returned

[gallery-dl][error] No suitable extractor found for 'https://im-in.space/web/@[email protected]/media'

My config is as follows:

{
    "extractor": {
        "mastodon": {
            "iminspace": {
                "root"         : "https://im-in.space",
                "access-token" : "REMOVED"
            }
        }
    }
}

Is there something I'm missing in the config? Have I misspelt something I haven't noticed? I've also tried specifying the mastodon extractor with mastodon: before the url, as well as including the client-id and secret in the config but to no avail.

Verbose output:

gallery-dl --verbose --config='~/.config/gallery-dl/config.json' https://im-in.space/web/@[email protected]/media
[gallery-dl][debug] Version 1.23.3 - Git HEAD: 978a452ea
[gallery-dl][debug] Python 3.10.8 - macOS-12.6-arm64-arm-64bit
[gallery-dl][debug] requests 2.28.1 - urllib3 1.26.12
[gallery-dl][debug] Starting DownloadJob for 'https://im-in.space/web/@[email protected]/media'
[gallery-dl][error] No suitable extractor found for 'https://im-in.space/web/@[email protected]/media'
@mikf
Copy link
Owner

mikf commented Oct 26, 2022

You did everything correctly regarding your config.

The problem is that for mastodon instances only /@USER and /@USER/<status id> URLs get recognized. /web/… and cross-instance users are not supported yet.

I guess you can't use https://someother.instance/@someuser?

@ghost
Copy link
Author

ghost commented Oct 26, 2022

Unfortunately, I don't have an account on that instance, it's just someone I follow from my account on im-in.space. Is there a URL I can use to download my bookmarked posts as a workaround? When I try to access my bookmarks from the browser it's also a /web address.

@mikf
Copy link
Owner

mikf commented Oct 26, 2022

No, that's also not supported.
I'll look into it.

@ghost
Copy link
Author

ghost commented Oct 26, 2022

I appreciate it!

@mikf
Copy link
Owner

mikf commented Oct 26, 2022

When I try to access my bookmarks from the browser it's also a /web address.

Is it something like https://someother.instance/web/bookmarks?
Because on mastodon.social it is just https://mastodon.social/bookmarks without /web.

@ghost
Copy link
Author

ghost commented Oct 26, 2022

Bookmarks appear at "https://im-in.space/web/bookmarks" for me. "https://im-in.space/bookmarks" doesn't work on my instance ("The page you are looking for isn't here.").

@mikf
Copy link
Owner

mikf commented Oct 28, 2022

Bookmarks are now supported (58d9718), as are URLs containing /web/ (5c31791) and cross-instance users like @[email protected] (9a2cfd4).

@mikf mikf closed this as completed Oct 28, 2022
@ghost
Copy link
Author

ghost commented Oct 28, 2022

Thanks for the update and so quickly adding support! I really appreciate it!

@jadedgnome
Copy link

I thought -o conversations=1 would work to download all images in a mastodon thread but it didn't.

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