[chevereto] add 'category' extractor (#5179)

This commit is contained in:
Mike Fährmann
2025-09-15 21:58:47 +02:00
parent 5ddc0064ed
commit 9ea0071bdf
3 changed files with 25 additions and 4 deletions

View File

@@ -1206,25 +1206,25 @@ Consider all listed sites to potentially be NSFW.
<tr id="jpgfish" title="jpgfish">
<td>JPG Fish</td>
<td>https://jpg6.su/</td>
<td>Albums, individual Images, User Profiles, Videos</td>
<td>Albums, Categories, individual Images, User Profiles, Videos</td>
<td></td>
</tr>
<tr id="imgkiwi" title="imgkiwi">
<td>IMG.Kiwi</td>
<td>https://img.kiwi/</td>
<td>Albums, individual Images, User Profiles, Videos</td>
<td>Albums, Categories, individual Images, User Profiles, Videos</td>
<td></td>
</tr>
<tr id="imagepond" title="imagepond">
<td>ImagePond</td>
<td>https://imagepond.net/</td>
<td>Albums, individual Images, User Profiles, Videos</td>
<td>Albums, Categories, individual Images, User Profiles, Videos</td>
<td></td>
</tr>
<tr id="imglike" title="imglike">
<td>Nude Celeb</td>
<td>https://imglike.com/</td>
<td>Albums, individual Images, User Profiles, Videos</td>
<td>Albums, Categories, individual Images, User Profiles, Videos</td>
<td></td>
</tr>

View File

@@ -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"

View File

@@ -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,
},
)