From 573d1d7d99a0a9846aad8c79b54e82a0a4a7fff6 Mon Sep 17 00:00:00 2001 From: rvn <138401463+skiesofravens@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:10:31 -0700 Subject: [PATCH 1/3] Add files via upload --- sites/HentaiFoundry.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sites/HentaiFoundry.py diff --git a/sites/HentaiFoundry.py b/sites/HentaiFoundry.py new file mode 100644 index 0000000..e0200c6 --- /dev/null +++ b/sites/HentaiFoundry.py @@ -0,0 +1,33 @@ +# HentaiFoundry definition. + +import fpclib +import re +from pathlib import Path + +regex = "hentai-foundry.com" +ver = 6 + +class HentaiFoundry(fpclib.Curation): + def parse(self, soup): + soup = fpclib.get_soup(self.url + "?enterAgree=1") + download_button = soup.select_one("#picBox .boxbody p a") + + self.cmd = "http:" + download_button["href"] + if not self.cmd.endswith(".swf"): raise ValueError("No game found on webpage.") + + # Get title + self.title = soup.select_one("#picBox .boxtitle .imageTitle").text + + # Get dev and publisher + self.dev = soup.select_one("#picBox .boxtitle a").text + self.publisher = "Hentai-Foundry.com" + + # Get desc + self.desc = soup.select_one("#descriptionBox .boxbody .picDescript").text.strip() + + # Get date + self.date = fpclib.DP_US.parse(soup.select_one("#pictureGeneralInfoBox .boxbody time").text.strip()) + + # Get platform + self.platform = "Flash" + self.app = fpclib.FLASH \ No newline at end of file From 1719e18269f100a01db0e43fa29ab436baa35749 Mon Sep 17 00:00:00 2001 From: rvn <138401463+skiesofravens@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:10:55 -0700 Subject: [PATCH 2/3] Update defs.txt --- sites/defs.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/sites/defs.txt b/sites/defs.txt index 6f55114..53c52de 100644 --- a/sites/defs.txt +++ b/sites/defs.txt @@ -18,3 +18,4 @@ Therese.py Unknown.py Y8.py c4399.py +HentaiFoundry.py From ccd1d9efd69dc0ed527653338591798dec80e19f Mon Sep 17 00:00:00 2001 From: rvn <138401463+skiesofravens@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:18:33 -0700 Subject: [PATCH 3/3] Update HentaiFoundry.py --- sites/HentaiFoundry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/HentaiFoundry.py b/sites/HentaiFoundry.py index e0200c6..d309cfe 100644 --- a/sites/HentaiFoundry.py +++ b/sites/HentaiFoundry.py @@ -20,7 +20,7 @@ def parse(self, soup): # Get dev and publisher self.dev = soup.select_one("#picBox .boxtitle a").text - self.publisher = "Hentai-Foundry.com" + self.publisher = "Hentai Foundry" # Get desc self.desc = soup.select_one("#descriptionBox .boxbody .picDescript").text.strip() @@ -30,4 +30,4 @@ def parse(self, soup): # Get platform self.platform = "Flash" - self.app = fpclib.FLASH \ No newline at end of file + self.app = fpclib.FLASH