diff --git a/docs/supportedsites.md b/docs/supportedsites.md index b042e96d..f9b216d4 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -1206,25 +1206,25 @@ Consider all listed sites to potentially be NSFW. JPG Fish https://jpg6.su/ - Albums, individual Images, User Profiles, Videos + Albums, Categories, individual Images, User Profiles, Videos IMG.Kiwi https://img.kiwi/ - Albums, individual Images, User Profiles, Videos + Albums, Categories, individual Images, User Profiles, Videos ImagePond https://imagepond.net/ - Albums, individual Images, User Profiles, Videos + Albums, Categories, individual Images, User Profiles, Videos Nude Celeb https://imglike.com/ - Albums, individual Images, User Profiles, Videos + Albums, Categories, individual Images, User Profiles, Videos diff --git a/gallery_dl/extractor/chevereto.py b/gallery_dl/extractor/chevereto.py index bd9013a4..67fdb393 100644 --- a/gallery_dl/extractor/chevereto.py +++ b/gallery_dl/extractor/chevereto.py @@ -156,6 +156,18 @@ class CheveretoAlbumExtractor(CheveretoExtractor): yield Message.Queue, image, data +class CheveretoCategoryExtractor(CheveretoExtractor): + """Extractor for chevereto galleries""" + subcategory = "category" + pattern = BASE_PATTERN + r"(/category/[^/?#]+)" + example = "https://imglike.com/category/TITLE" + + def items(self): + data = {"_extractor": CheveretoImageExtractor} + for image in self._pagination(self.root + self.path): + yield Message.Queue, image, data + + class CheveretoUserExtractor(CheveretoExtractor): """Extractor for chevereto users""" subcategory = "user" diff --git a/test/results/imglike.py b/test/results/imglike.py index b84d1d01..fe1358f6 100644 --- a/test/results/imglike.py +++ b/test/results/imglike.py @@ -49,4 +49,13 @@ __tests__ = ( ), }, +{ + "#url" : "https://imglike.com/category/Bursting-boobs", + "#category": ("chevereto", "imglike", "category"), + "#class" : chevereto.CheveretoCategoryExtractor, + "#pattern" : chevereto.CheveretoImageExtractor.pattern, + "#range" : "1-100", + "#count" : 100, +}, + )