1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[nijie] add 'feed' extractor (#3048)

This commit is contained in:
Mike Fährmann 2022-10-14 12:03:00 +02:00
parent d1314df6e6
commit c4a62a48ae
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 22 additions and 2 deletions

View File

@ -1046,13 +1046,13 @@ Consider all sites to be NSFW unless otherwise known.
<tr> <tr>
<td>nijie</td> <td>nijie</td>
<td>https://nijie.info/</td> <td>https://nijie.info/</td>
<td>Doujin, Favorites, Illustrations, individual Images, Nuita History, User Profiles</td> <td>Doujin, Favorites, Feeds, Illustrations, individual Images, Nuita History, User Profiles</td>
<td>Required</td> <td>Required</td>
</tr> </tr>
<tr> <tr>
<td>horne</td> <td>horne</td>
<td>https://horne.red/</td> <td>https://horne.red/</td>
<td>Doujin, Favorites, Illustrations, individual Images, Nuitas, User Profiles</td> <td>Doujin, Favorites, Feeds, Illustrations, individual Images, Nuitas, User Profiles</td>
<td>Required</td> <td>Required</td>
</tr> </tr>

View File

@ -326,6 +326,26 @@ class NijieNuitaExtractor(NijieExtractor):
page, "<title>", "さんの抜いた")[0] or "") page, "<title>", "さんの抜いた")[0] or "")
class NijieFeedExtractor(NijieExtractor):
"""Extractor for nijie liked user feed"""
subcategory = "feed"
pattern = BASE_PATTERN + r"/like_user_view\.php"
test = (
("https://nijie.info/like_user_view.php", {
"range": "1-10",
"count": 10,
}),
("https://horne.red/like_user_view.php"),
)
def image_ids(self):
return self._pagination("like_user_view")
@staticmethod
def _extract_user_name(page):
return ""
class NijieImageExtractor(NijieExtractor): class NijieImageExtractor(NijieExtractor):
"""Extractor for a nijie work/image""" """Extractor for a nijie work/image"""
subcategory = "image" subcategory = "image"