[chevereto] add 'category' extractor (#5179)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user