[hentaifoundry] add 'favorite' extractor
This commit is contained in:
@@ -29,7 +29,7 @@ Gelbooru https://gelbooru.com/ Pools, Posts, Tag-Searc
|
|||||||
Gfycat https://gfycat.com/ individual Images
|
Gfycat https://gfycat.com/ individual Images
|
||||||
HBrowse http://www.hbrowse.com/ Chapters, Manga
|
HBrowse http://www.hbrowse.com/ Chapters, Manga
|
||||||
Hentai Cafe https://hentai.cafe/ Chapters, Manga
|
Hentai Cafe https://hentai.cafe/ Chapters, Manga
|
||||||
Hentai Foundry https://www.hentai-foundry.com/ Images from Users, individual Images, Scraps
|
Hentai Foundry https://www.hentai-foundry.com/ |Images from Use-3|
|
||||||
Hentai2Read https://hentai2read.com/ Chapters, Manga
|
Hentai2Read https://hentai2read.com/ Chapters, Manga
|
||||||
HentaiHere https://hentaihere.com/ Chapters, Manga
|
HentaiHere https://hentaihere.com/ Chapters, Manga
|
||||||
Hitomi.la https://hitomi.la/ Galleries
|
Hitomi.la https://hitomi.la/ Galleries
|
||||||
@@ -56,12 +56,12 @@ Mangareader https://www.mangareader.net/ Chapters, Manga
|
|||||||
Ngomik http://ngomik.in/ Chapters
|
Ngomik http://ngomik.in/ Chapters
|
||||||
nhentai https://nhentai.net/ Galleries, Search Results
|
nhentai https://nhentai.net/ Galleries, Search Results
|
||||||
Niconico Seiga http://seiga.nicovideo.jp Images from Users, individual Images Required
|
Niconico Seiga http://seiga.nicovideo.jp Images from Users, individual Images Required
|
||||||
nijie https://nijie.info/ |Images from Use-3| Required
|
nijie https://nijie.info/ |Images from Use-4| Required
|
||||||
Nyafuu Archive https://archive.nyafuu.org/ Threads
|
Nyafuu Archive https://archive.nyafuu.org/ Threads
|
||||||
Pawoo https://pawoo.net Images from Users, Images from Statuses
|
Pawoo https://pawoo.net Images from Users, Images from Statuses
|
||||||
Piczel https://piczel.tv/ Images from Users, Folders, individual Images
|
Piczel https://piczel.tv/ Images from Users, Folders, individual Images
|
||||||
Pinterest https://www.pinterest.com Boards, Pins, pin.it Links, related Pins
|
Pinterest https://www.pinterest.com Boards, Pins, pin.it Links, related Pins
|
||||||
Pixiv https://www.pixiv.net/ |Images from Use-4| Required
|
Pixiv https://www.pixiv.net/ |Images from Use-5| Required
|
||||||
PowerManga https://powermanga.org/ Chapters, Manga
|
PowerManga https://powermanga.org/ Chapters, Manga
|
||||||
Read Comic Online http://readcomiconline.to/ Comic-Issues, Comics
|
Read Comic Online http://readcomiconline.to/ Comic-Issues, Comics
|
||||||
RebeccaBlackTech https://rbt.asia/ Threads
|
RebeccaBlackTech https://rbt.asia/ Threads
|
||||||
@@ -75,7 +75,7 @@ Sen Manga http://raw.senmanga.com/ Chapters
|
|||||||
Sense-Scans http://sensescans.com/ Chapters, Manga
|
Sense-Scans http://sensescans.com/ Chapters, Manga
|
||||||
Simply Hentai https://www.simply-hentai.com/ Galleries, individual Images, Videos
|
Simply Hentai https://www.simply-hentai.com/ Galleries, individual Images, Videos
|
||||||
SlideShare https://www.slideshare.net/ Presentations
|
SlideShare https://www.slideshare.net/ Presentations
|
||||||
SmugMug https://www.smugmug.com/ |Albums, individ-5| Optional (OAuth)
|
SmugMug https://www.smugmug.com/ |Albums, individ-6| Optional (OAuth)
|
||||||
The /b/ Archive https://thebarchive.com/ Threads
|
The /b/ Archive https://thebarchive.com/ Threads
|
||||||
Tumblr https://www.tumblr.com/ Images from Users, Likes, Posts, Tag-Searches Optional (OAuth)
|
Tumblr https://www.tumblr.com/ Images from Users, Likes, Posts, Tag-Searches Optional (OAuth)
|
||||||
Twitter https://twitter.com/ Media Timelines, Timelines, Tweets
|
Twitter https://twitter.com/ Media Timelines, Timelines, Tweets
|
||||||
@@ -97,6 +97,7 @@ Turboimagehost https://turboimagehost.com/ individual Images
|
|||||||
.. |Images from Use-0| replace:: Images from Users, Albums, Challenges, individual Images, Likes, Search Results
|
.. |Images from Use-0| replace:: Images from Users, Albums, Challenges, individual Images, Likes, Search Results
|
||||||
.. |Collections, De-1| replace:: Collections, Deviations, Favorites, Folders, Galleries, Journals, Popular Images
|
.. |Collections, De-1| replace:: Collections, Deviations, Favorites, Folders, Galleries, Journals, Popular Images
|
||||||
.. |Images from Use-2| replace:: Images from Users, Albums, Favorites, Galleries, Groups, individual Images, Search Results
|
.. |Images from Use-2| replace:: Images from Users, Albums, Favorites, Galleries, Groups, individual Images, Search Results
|
||||||
.. |Images from Use-3| replace:: Images from Users, Doujin, Favorites, individual Images
|
.. |Images from Use-3| replace:: Images from Users, Favorites, individual Images, Scraps
|
||||||
.. |Images from Use-4| replace:: Images from Users, Favorites, Follows, pixiv.me Links, Rankings, Search Results, Individual Images
|
.. |Images from Use-4| replace:: Images from Users, Doujin, Favorites, individual Images
|
||||||
.. |Albums, individ-5| replace:: Albums, individual Images, Images from Users and Folders
|
.. |Images from Use-5| replace:: Images from Users, Favorites, Follows, pixiv.me Links, Rankings, Search Results, Individual Images
|
||||||
|
.. |Albums, individ-6| replace:: Albums, individual Images, Images from Users and Folders
|
||||||
|
|||||||
@@ -168,6 +168,27 @@ class HentaifoundryScrapsExtractor(HentaifoundryExtractor):
|
|||||||
return {"user": self.user, "count": text.parse_int(count)}
|
return {"user": self.user, "count": text.parse_int(count)}
|
||||||
|
|
||||||
|
|
||||||
|
class HentaifoundryFavoriteExtractor(HentaifoundryExtractor):
|
||||||
|
"""Extractor for favorite images of a hentai-foundry-user"""
|
||||||
|
subcategory = "favorite"
|
||||||
|
directory_fmt = ["{category}", "{user}", "Favorites"]
|
||||||
|
archive_fmt = "f_{user}_{index}"
|
||||||
|
pattern = [r"(?:https?://)?(?:www\.)?hentai-foundry\.com"
|
||||||
|
r"/user/([^/]+)/faves/pictures(?:/page/(\d+))?"]
|
||||||
|
test = [
|
||||||
|
("https://www.hentai-foundry.com/user/Tenpura/faves/pictures", {
|
||||||
|
"url": "56f9ae2e89fe855e9fe1da9b81e5ec6212b0320b",
|
||||||
|
"keyword": "0ab79552ae2fbfcf501ebbebcf19c2dfc9b5eb4e",
|
||||||
|
}),
|
||||||
|
("https://www.hentai-foundry.com"
|
||||||
|
"/user/Tenpura/faves/pictures/page/3", None),
|
||||||
|
]
|
||||||
|
|
||||||
|
def __init__(self, match):
|
||||||
|
HentaifoundryExtractor.__init__(self, match.group(1), match.group(2))
|
||||||
|
self.url = "{}/user/{}/faves/pictures".format(self.root, self.user)
|
||||||
|
|
||||||
|
|
||||||
class HentaifoundryImageExtractor(HentaifoundryExtractor):
|
class HentaifoundryImageExtractor(HentaifoundryExtractor):
|
||||||
"""Extractor for a single image from hentaifoundry.com"""
|
"""Extractor for a single image from hentaifoundry.com"""
|
||||||
subcategory = "image"
|
subcategory = "image"
|
||||||
|
|||||||
Reference in New Issue
Block a user