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:
parent
d1314df6e6
commit
c4a62a48ae
@ -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>
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user