Skip to content

🕵️‍♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.

feat(user_scan): add 12 habbo regional modules in gaming category(#737)

alvaromaltrainfcd45cf2991e
diff --git a/user_scanner/user_scan/gaming/habbo_com.py b/user_scanner/user_scan/gaming/habbo_com.py
new file mode 100644
index 0000000..8910839
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_com.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_com(user: str) -> Result:
+ url = "https://www.habbo.com/api/public/users"
+ show_url = f"https://www.habbo.com/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_com_br.py b/user_scanner/user_scan/gaming/habbo_com_br.py
new file mode 100644
index 0000000..dd45729
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_com_br.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_com_br(user: str) -> Result:
+ url = "https://www.habbo.com.br/api/public/users"
+ show_url = f"https://www.habbo.com.br/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_com_tr.py b/user_scanner/user_scan/gaming/habbo_com_tr.py
new file mode 100644
index 0000000..da789a6
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_com_tr.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_com_tr(user: str) -> Result:
+ url = "https://www.habbo.com.tr/api/public/users"
+ show_url = f"https://www.habbo.com.tr/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_de.py b/user_scanner/user_scan/gaming/habbo_de.py
new file mode 100644
index 0000000..99a0025
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_de.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_de(user: str) -> Result:
+ url = "https://www.habbo.de/api/public/users"
+ show_url = f"https://www.habbo.de/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_es.py b/user_scanner/user_scan/gaming/habbo_es.py
new file mode 100644
index 0000000..0e30a18
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_es.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_es(user: str) -> Result:
+ url = "https://www.habbo.es/api/public/users"
+ show_url = f"https://www.habbo.es/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_fi.py b/user_scanner/user_scan/gaming/habbo_fi.py
new file mode 100644
index 0000000..c6c98d8
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_fi.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_fi(user: str) -> Result:
+ url = "https://www.habbo.fi/api/public/users"
+ show_url = f"https://www.habbo.fi/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_fr.py b/user_scanner/user_scan/gaming/habbo_fr.py
new file mode 100644
index 0000000..bd3e7a8
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_fr.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_fr(user: str) -> Result:
+ url = "https://www.habbo.fr/api/public/users"
+ show_url = f"https://www.habbo.fr/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_it.py b/user_scanner/user_scan/gaming/habbo_it.py
new file mode 100644
index 0000000..bd524a0
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_it.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_it(user: str) -> Result:
+ url = "https://www.habbo.it/api/public/users"
+ show_url = f"https://www.habbo.it/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/habbo_nl.py b/user_scanner/user_scan/gaming/habbo_nl.py
new file mode 100644
index 0000000..15be70f
--- /dev/null
+++ b/user_scanner/user_scan/gaming/habbo_nl.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_habbo_nl(user: str) -> Result:
+ url = "https://www.habbo.nl/api/public/users"
+ show_url = f"https://www.habbo.nl/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/origins_habbo_com.py b/user_scanner/user_scan/gaming/origins_habbo_com.py
new file mode 100644
index 0000000..51b1f78
--- /dev/null
+++ b/user_scanner/user_scan/gaming/origins_habbo_com.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_origins_habbo_com(user: str) -> Result:
+ url = "https://origins.habbo.com/api/public/users"
+ show_url = f"https://origins.habbo.com/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/origins_habbo_com_br.py b/user_scanner/user_scan/gaming/origins_habbo_com_br.py
new file mode 100644
index 0000000..fadc15a
--- /dev/null
+++ b/user_scanner/user_scan/gaming/origins_habbo_com_br.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_origins_habbo_com_br(user: str) -> Result:
+ url = "https://origins.habbo.com.br/api/public/users"
+ show_url = f"https://origins.habbo.com.br/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )
diff --git a/user_scanner/user_scan/gaming/origins_habbo_es.py b/user_scanner/user_scan/gaming/origins_habbo_es.py
new file mode 100644
index 0000000..afd48b2
--- /dev/null
+++ b/user_scanner/user_scan/gaming/origins_habbo_es.py
@@ -0,0 +1,59 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_origins_habbo_es(user: str) -> Result:
+ url = "https://origins.habbo.es/api/public/users"
+ show_url = f"https://origins.habbo.es/profile/{user}"
+ headers = {"Accept": "application/json"}
+
+ def process(response):
+ try:
+ data = response.json()
+ except ValueError:
+ return Result.error(f"Unexpected non-JSON response: {response.status_code}")
+
+ if response.status_code == 404 and data.get("error") == "not-found":
+ return Result.available()
+
+ if response.status_code != 200 or not data.get("uniqueId"):
+ return Result.error(
+ f"Unexpected response status or payload: {response.status_code}"
+ )
+
+ extra = {}
+ media = {}
+
+ if name := data.get("name"):
+ extra["name"] = name
+ if motto := data.get("motto"):
+ extra["motto"] = motto
+ if "online" in data:
+ extra["online"] = data["online"]
+ if member_since := data.get("memberSince"):
+ extra["member_since"] = member_since
+ if last_access := data.get("lastAccessTime"):
+ extra["last_access"] = last_access
+ if "profileVisible" in data:
+ extra["profile_visible"] = data["profileVisible"]
+ if "currentLevel" in data:
+ extra["level"] = data["currentLevel"]
+ if "totalExperience" in data:
+ extra["experience"] = data["totalExperience"]
+ if "starGemCount" in data:
+ extra["star_gems"] = data["starGemCount"]
+ if figure := data.get("figureString"):
+ media["avatar"] = (
+ "https://www.habbo.com/habbo-imaging/avatarimage"
+ f"?figure={figure}&size=l&direction=2&head_direction=3&gesture=sml"
+ )
+
+ return Result.taken(extra=extra, media=media)
+
+ return generic_validate(
+ url,
+ process,
+ show_url=show_url,
+ headers=headers,
+ params={"name": user},
+ )