From 5cd3f3977e1dfed7530e65af9faddc8c35269678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 6 Jun 2025 20:20:38 +0200 Subject: [PATCH] [misskey] add 'info' extractor (#5347) --- docs/supportedsites.md | 8 ++++---- gallery_dl/extractor/misskey.py | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 015a126f..17b341fe 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -1424,25 +1424,25 @@ Consider all listed sites to potentially be NSFW. Misskey.io https://misskey.io/ - Avatars, Backgrounds, Favorites, Followed Users, Images from Notes, User Profiles + Avatars, Backgrounds, Favorites, Followed Users, User Profile Information, Images from Notes, User Profiles Misskey.design https://misskey.design/ - Avatars, Backgrounds, Favorites, Followed Users, Images from Notes, User Profiles + Avatars, Backgrounds, Favorites, Followed Users, User Profile Information, Images from Notes, User Profiles Lesbian.energy https://lesbian.energy/ - Avatars, Backgrounds, Favorites, Followed Users, Images from Notes, User Profiles + Avatars, Backgrounds, Favorites, Followed Users, User Profile Information, Images from Notes, User Profiles Sushi.ski https://sushi.ski/ - Avatars, Backgrounds, Favorites, Followed Users, Images from Notes, User Profiles + Avatars, Backgrounds, Favorites, Followed Users, User Profile Information, Images from Notes, User Profiles diff --git a/gallery_dl/extractor/misskey.py b/gallery_dl/extractor/misskey.py index 7ee5278a..5f3bc513 100644 --- a/gallery_dl/extractor/misskey.py +++ b/gallery_dl/extractor/misskey.py @@ -113,6 +113,17 @@ class MisskeyUserExtractor(MisskeyExtractor): return self.api.users_notes(self.api.user_id_by_username(self.item)) +class MisskeyInfoExtractor(MisskeyExtractor): + """Extractor for a Misskey user's profile data""" + subcategory = "info" + pattern = BASE_PATTERN + r"/@([^/?#]+)/info" + example = "https://misskey.io/@USER/info" + + def items(self): + user = self.api.users_show(self.item) + return iter(((Message.Directory, user),)) + + class MisskeyAvatarExtractor(MisskeyExtractor): """Extractor for a Misskey user's avatar""" subcategory = "avatar"