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 200 username OSINT modules across diverse categories (#654)

Kaif2d4ed7e44f38
diff --git a/user_scanner/user_scan/community/ask_taosdata_com.py b/user_scanner/user_scan/community/ask_taosdata_com.py
new file mode 100644
index 0000000..4327452
--- /dev/null
+++ b/user_scanner/user_scan/community/ask_taosdata_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_ask_taosdata_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://ask.taosdata.com/u/{encoded_user}.json"
+ show_url = f"https://ask.taosdata.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://ask.taosdata.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/bnebrak_com.py b/user_scanner/user_scan/community/bnebrak_com.py
new file mode 100644
index 0000000..bacdd1a
--- /dev/null
+++ b/user_scanner/user_scan/community/bnebrak_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_bnebrak_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://bnebrak.com/user/{encoded_user}"
+ show_url = f"https://bnebrak.com/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_darkscribes_com.py b/user_scanner/user_scan/community/community_darkscribes_com.py
new file mode 100644
index 0000000..4eefebc
--- /dev/null
+++ b/user_scanner/user_scan/community/community_darkscribes_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_darkscribes_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.darkscribes.com/user/{encoded_user}"
+ show_url = f"https://community.darkscribes.com/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_easyengine_io.py b/user_scanner/user_scan/community/community_easyengine_io.py
new file mode 100644
index 0000000..e2ea52e
--- /dev/null
+++ b/user_scanner/user_scan/community/community_easyengine_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_easyengine_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.easyengine.io/u/{encoded_user}.json"
+ show_url = f"https://community.easyengine.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.easyengine.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_hex_rays_com.py b/user_scanner/user_scan/community/community_hex_rays_com.py
new file mode 100644
index 0000000..062c984
--- /dev/null
+++ b/user_scanner/user_scan/community/community_hex_rays_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_hex_rays_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.hex-rays.com/u/{encoded_user}.json"
+ show_url = f"https://community.hex-rays.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.hex-rays.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_infisical_com.py b/user_scanner/user_scan/community/community_infisical_com.py
new file mode 100644
index 0000000..29db268
--- /dev/null
+++ b/user_scanner/user_scan/community/community_infisical_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_infisical_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.infisical.com/u/{encoded_user}.json"
+ show_url = f"https://community.infisical.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.infisical.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_netspotapp_com.py b/user_scanner/user_scan/community/community_netspotapp_com.py
new file mode 100644
index 0000000..8f47906
--- /dev/null
+++ b/user_scanner/user_scan/community/community_netspotapp_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_netspotapp_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.netspotapp.com/u/{encoded_user}.json"
+ show_url = f"https://community.netspotapp.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.netspotapp.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_opalapp_com.py b/user_scanner/user_scan/community/community_opalapp_com.py
new file mode 100644
index 0000000..99de19f
--- /dev/null
+++ b/user_scanner/user_scan/community/community_opalapp_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_opalapp_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.opalapp.com/u/{encoded_user}.json"
+ show_url = f"https://community.opalapp.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.opalapp.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_redact_dev.py b/user_scanner/user_scan/community/community_redact_dev.py
new file mode 100644
index 0000000..cbcc60a
--- /dev/null
+++ b/user_scanner/user_scan/community/community_redact_dev.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_redact_dev(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.redact.dev/u/{encoded_user}.json"
+ show_url = f"https://community.redact.dev/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.redact.dev{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_supernotes_app.py b/user_scanner/user_scan/community/community_supernotes_app.py
new file mode 100644
index 0000000..e33c4b2
--- /dev/null
+++ b/user_scanner/user_scan/community/community_supernotes_app.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_supernotes_app(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.supernotes.app/u/{encoded_user}.json"
+ show_url = f"https://community.supernotes.app/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.supernotes.app{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/community_textexpander_com.py b/user_scanner/user_scan/community/community_textexpander_com.py
new file mode 100644
index 0000000..2c83aee
--- /dev/null
+++ b/user_scanner/user_scan/community/community_textexpander_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_textexpander_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.textexpander.com/u/{encoded_user}.json"
+ show_url = f"https://community.textexpander.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.textexpander.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/discuss_meshery_io.py b/user_scanner/user_scan/community/discuss_meshery_io.py
new file mode 100644
index 0000000..9f36ce6
--- /dev/null
+++ b/user_scanner/user_scan/community/discuss_meshery_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_discuss_meshery_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discuss.meshery.io/u/{encoded_user}.json"
+ show_url = f"https://discuss.meshery.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discuss.meshery.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/diy_il_forum.py b/user_scanner/user_scan/community/diy_il_forum.py
new file mode 100644
index 0000000..dc57196
--- /dev/null
+++ b/user_scanner/user_scan/community/diy_il_forum.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_diy_il_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://diy-il.forum/user/{encoded_user}"
+ show_url = f"https://diy-il.forum/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/erlangforums_com.py b/user_scanner/user_scan/community/erlangforums_com.py
new file mode 100644
index 0000000..d7e2682
--- /dev/null
+++ b/user_scanner/user_scan/community/erlangforums_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_erlangforums_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://erlangforums.com/u/{encoded_user}.json"
+ show_url = f"https://erlangforums.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://erlangforums.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_cnnr_fr.py b/user_scanner/user_scan/community/forum_cnnr_fr.py
new file mode 100644
index 0000000..2328cf3
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_cnnr_fr.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_cnnr_fr(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.cnnr.fr/user/{encoded_user}"
+ show_url = f"https://forum.cnnr.fr/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_elastiflow_com.py b/user_scanner/user_scan/community/forum_elastiflow_com.py
new file mode 100644
index 0000000..0336101
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_elastiflow_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_elastiflow_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.elastiflow.com/u/{encoded_user}.json"
+ show_url = f"https://forum.elastiflow.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.elastiflow.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_fabmob_io.py b/user_scanner/user_scan/community/forum_fabmob_io.py
new file mode 100644
index 0000000..9747931
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_fabmob_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_fabmob_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.fabmob.io/u/{encoded_user}.json"
+ show_url = f"https://forum.fabmob.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.fabmob.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_fedilab_app.py b/user_scanner/user_scan/community/forum_fedilab_app.py
new file mode 100644
index 0000000..afac61f
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_fedilab_app.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_fedilab_app(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.fedilab.app/user/{encoded_user}"
+ show_url = f"https://forum.fedilab.app/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_free5gc_org.py b/user_scanner/user_scan/community/forum_free5gc_org.py
new file mode 100644
index 0000000..11ec91c
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_free5gc_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_free5gc_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.free5gc.org/u/{encoded_user}.json"
+ show_url = f"https://forum.free5gc.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.free5gc.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_mudita_com.py b/user_scanner/user_scan/community/forum_mudita_com.py
new file mode 100644
index 0000000..9a2c0c9
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_mudita_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_mudita_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.mudita.com/u/{encoded_user}.json"
+ show_url = f"https://forum.mudita.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.mudita.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_rainlendar_net.py b/user_scanner/user_scan/community/forum_rainlendar_net.py
new file mode 100644
index 0000000..d8125bc
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_rainlendar_net.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_rainlendar_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.rainlendar.net/u/{encoded_user}.json"
+ show_url = f"https://forum.rainlendar.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.rainlendar.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_rcloneview_com.py b/user_scanner/user_scan/community/forum_rcloneview_com.py
new file mode 100644
index 0000000..1a27bfe
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_rcloneview_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_rcloneview_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.rcloneview.com/u/{encoded_user}.json"
+ show_url = f"https://forum.rcloneview.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.rcloneview.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forum_wfview_org.py b/user_scanner/user_scan/community/forum_wfview_org.py
new file mode 100644
index 0000000..f56a6fa
--- /dev/null
+++ b/user_scanner/user_scan/community/forum_wfview_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_wfview_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.wfview.org/u/{encoded_user}.json"
+ show_url = f"https://forum.wfview.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.wfview.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/forums_furiosa_ai.py b/user_scanner/user_scan/community/forums_furiosa_ai.py
new file mode 100644
index 0000000..b49e658
--- /dev/null
+++ b/user_scanner/user_scan/community/forums_furiosa_ai.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forums_furiosa_ai(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forums.furiosa.ai/u/{encoded_user}.json"
+ show_url = f"https://forums.furiosa.ai/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forums.furiosa.ai{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/gefragt_net.py b/user_scanner/user_scan/community/gefragt_net.py
new file mode 100644
index 0000000..b2d55e8
--- /dev/null
+++ b/user_scanner/user_scan/community/gefragt_net.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_gefragt_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gefragt.net/user/{encoded_user}"
+ show_url = f"https://gefragt.net/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/git_batsense_net.py b/user_scanner/user_scan/community/git_batsense_net.py
new file mode 100644
index 0000000..296df83
--- /dev/null
+++ b/user_scanner/user_scan/community/git_batsense_net.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_batsense_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.batsense.net/{encoded_user}"
+ show_url = f"https://git.batsense.net/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/git_bitmessage_org.py b/user_scanner/user_scan/community/git_bitmessage_org.py
new file mode 100644
index 0000000..91c4ea2
--- /dev/null
+++ b/user_scanner/user_scan/community/git_bitmessage_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_bitmessage_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.bitmessage.org/{encoded_user}"
+ show_url = f"https://git.bitmessage.org/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/help_ganttproject_biz.py b/user_scanner/user_scan/community/help_ganttproject_biz.py
new file mode 100644
index 0000000..535b32c
--- /dev/null
+++ b/user_scanner/user_scan/community/help_ganttproject_biz.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_help_ganttproject_biz(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://help.ganttproject.biz/u/{encoded_user}.json"
+ show_url = f"https://help.ganttproject.biz/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://help.ganttproject.biz{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/help_iwascoding_com.py b/user_scanner/user_scan/community/help_iwascoding_com.py
new file mode 100644
index 0000000..7b9d6c2
--- /dev/null
+++ b/user_scanner/user_scan/community/help_iwascoding_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_help_iwascoding_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://help.iwascoding.com/u/{encoded_user}.json"
+ show_url = f"https://help.iwascoding.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://help.iwascoding.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/kubuckets_com.py b/user_scanner/user_scan/community/kubuckets_com.py
new file mode 100644
index 0000000..bfa3aa7
--- /dev/null
+++ b/user_scanner/user_scan/community/kubuckets_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_kubuckets_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://kubuckets.com/user/{encoded_user}"
+ show_url = f"https://kubuckets.com/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/macscripter_net.py b/user_scanner/user_scan/community/macscripter_net.py
new file mode 100644
index 0000000..0d3f665
--- /dev/null
+++ b/user_scanner/user_scan/community/macscripter_net.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_macscripter_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://macscripter.net/u/{encoded_user}.json"
+ show_url = f"https://macscripter.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://macscripter.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/natur_23_nu.py b/user_scanner/user_scan/community/natur_23_nu.py
new file mode 100644
index 0000000..6d97263
--- /dev/null
+++ b/user_scanner/user_scan/community/natur_23_nu.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_natur_23_nu(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://natur.23.nu/api/v3/user"
+ show_url = f"https://natur.23.nu/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/community/selfhosted_forum.py b/user_scanner/user_scan/community/selfhosted_forum.py
new file mode 100644
index 0000000..aa2f775
--- /dev/null
+++ b/user_scanner/user_scan/community/selfhosted_forum.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_selfhosted_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://selfhosted.forum/api/v3/user"
+ show_url = f"https://selfhosted.forum/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/community/sendegate_de.py b/user_scanner/user_scan/community/sendegate_de.py
new file mode 100644
index 0000000..c3abadd
--- /dev/null
+++ b/user_scanner/user_scan/community/sendegate_de.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_sendegate_de(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://sendegate.de/u/{encoded_user}.json"
+ show_url = f"https://sendegate.de/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://sendegate.de{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/shredderfood_net.py b/user_scanner/user_scan/community/shredderfood_net.py
new file mode 100644
index 0000000..70280e3
--- /dev/null
+++ b/user_scanner/user_scan/community/shredderfood_net.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_shredderfood_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://shredderfood.net/api/v3/user"
+ show_url = f"https://shredderfood.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/community/support_hogbaysoftware_com.py b/user_scanner/user_scan/community/support_hogbaysoftware_com.py
new file mode 100644
index 0000000..1156cf0
--- /dev/null
+++ b/user_scanner/user_scan/community/support_hogbaysoftware_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_support_hogbaysoftware_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://support.hogbaysoftware.com/u/{encoded_user}.json"
+ show_url = f"https://support.hogbaysoftware.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://support.hogbaysoftware.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/talk_automators_fm.py b/user_scanner/user_scan/community/talk_automators_fm.py
new file mode 100644
index 0000000..237c018
--- /dev/null
+++ b/user_scanner/user_scan/community/talk_automators_fm.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_talk_automators_fm(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://talk.automators.fm/u/{encoded_user}.json"
+ show_url = f"https://talk.automators.fm/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://talk.automators.fm{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/talk_dynalist_io.py b/user_scanner/user_scan/community/talk_dynalist_io.py
new file mode 100644
index 0000000..9a96686
--- /dev/null
+++ b/user_scanner/user_scan/community/talk_dynalist_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_talk_dynalist_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://talk.dynalist.io/u/{encoded_user}.json"
+ show_url = f"https://talk.dynalist.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://talk.dynalist.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/community/viblo_asia.py b/user_scanner/user_scan/community/viblo_asia.py
new file mode 100644
index 0000000..1214755
--- /dev/null
+++ b/user_scanner/user_scan/community/viblo_asia.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_viblo_asia(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://viblo.asia/u/{encoded_user}"
+ show_url = f"https://viblo.asia/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/creality_cloud.py b/user_scanner/user_scan/creative/creality_cloud.py
new file mode 100644
index 0000000..50b7081
--- /dev/null
+++ b/user_scanner/user_scan/creative/creality_cloud.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_creality_cloud(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.creality.com/u/{encoded_user}.json"
+ show_url = f"https://forum.creality.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.creality.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/cults3d_user.py b/user_scanner/user_scan/creative/cults3d_user.py
new file mode 100644
index 0000000..34af2f3
--- /dev/null
+++ b/user_scanner/user_scan/creative/cults3d_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_cults3d_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://cults3d.com/en/users/{encoded_user}"
+ show_url = f"https://cults3d.com/en/users/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/fontstruct.py b/user_scanner/user_scan/creative/fontstruct.py
new file mode 100644
index 0000000..a0e1715
--- /dev/null
+++ b/user_scanner/user_scan/creative/fontstruct.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_fontstruct(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://fontstruct.com/fontstructors/{encoded_user}"
+ show_url = f"https://fontstruct.com/fontstructors/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/forum_bricksbuilder_io.py b/user_scanner/user_scan/creative/forum_bricksbuilder_io.py
new file mode 100644
index 0000000..c610451
--- /dev/null
+++ b/user_scanner/user_scan/creative/forum_bricksbuilder_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_bricksbuilder_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.bricksbuilder.io/u/{encoded_user}.json"
+ show_url = f"https://forum.bricksbuilder.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.bricksbuilder.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/forum_bricsys_com.py b/user_scanner/user_scan/creative/forum_bricsys_com.py
new file mode 100644
index 0000000..c2f74da
--- /dev/null
+++ b/user_scanner/user_scan/creative/forum_bricsys_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_bricsys_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.bricsys.com/profile/{encoded_user}"
+ show_url = f"https://forum.bricsys.com/profile/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/forum_squareline_io.py b/user_scanner/user_scan/creative/forum_squareline_io.py
new file mode 100644
index 0000000..53cf809
--- /dev/null
+++ b/user_scanner/user_scan/creative/forum_squareline_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_squareline_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.squareline.io/u/{encoded_user}.json"
+ show_url = f"https://forum.squareline.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.squareline.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/forums_armorpaint_org.py b/user_scanner/user_scan/creative/forums_armorpaint_org.py
new file mode 100644
index 0000000..b191800
--- /dev/null
+++ b/user_scanner/user_scan/creative/forums_armorpaint_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forums_armorpaint_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forums.armorpaint.org/u/{encoded_user}.json"
+ show_url = f"https://forums.armorpaint.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forums.armorpaint.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/lemmy_imagisphe_re.py b/user_scanner/user_scan/creative/lemmy_imagisphe_re.py
new file mode 100644
index 0000000..65a5c6b
--- /dev/null
+++ b/user_scanner/user_scan/creative/lemmy_imagisphe_re.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_imagisphe_re(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.imagisphe.re/api/v3/user"
+ show_url = f"https://lemmy.imagisphe.re/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/creative/lemmy_nocturnal_garden.py b/user_scanner/user_scan/creative/lemmy_nocturnal_garden.py
new file mode 100644
index 0000000..e00c7ff
--- /dev/null
+++ b/user_scanner/user_scan/creative/lemmy_nocturnal_garden.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_nocturnal_garden(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.nocturnal.garden/api/v3/user"
+ show_url = f"https://lemmy.nocturnal.garden/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/creative/merveilles_town.py b/user_scanner/user_scan/creative/merveilles_town.py
new file mode 100644
index 0000000..41659b2
--- /dev/null
+++ b/user_scanner/user_scan/creative/merveilles_town.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_merveilles_town(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://merveilles.town/@{encoded_user}"
+ show_url = f"https://merveilles.town/@{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/myfonts_user.py b/user_scanner/user_scan/creative/myfonts_user.py
new file mode 100644
index 0000000..1b94f55
--- /dev/null
+++ b/user_scanner/user_scan/creative/myfonts_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_myfonts_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.myfonts.com/collections/{encoded_user}"
+ show_url = f"https://www.myfonts.com/collections/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/post_lurk_org.py b/user_scanner/user_scan/creative/post_lurk_org.py
new file mode 100644
index 0000000..4973c5c
--- /dev/null
+++ b/user_scanner/user_scan/creative/post_lurk_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_post_lurk_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://post.lurk.org/@{encoded_user}"
+ show_url = f"https://post.lurk.org/@{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/snapmaker_forum.py b/user_scanner/user_scan/creative/snapmaker_forum.py
new file mode 100644
index 0000000..1a40f84
--- /dev/null
+++ b/user_scanner/user_scan/creative/snapmaker_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_snapmaker_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.snapmaker.com/u/{encoded_user}.json"
+ show_url = f"https://forum.snapmaker.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.snapmaker.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/sub_community.py b/user_scanner/user_scan/creative/sub_community.py
new file mode 100644
index 0000000..963a3e9
--- /dev/null
+++ b/user_scanner/user_scan/creative/sub_community.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_sub_community(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://sub.community/api/v3/user"
+ show_url = f"https://sub.community/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/creative/support_synfig_org.py b/user_scanner/user_scan/creative/support_synfig_org.py
new file mode 100644
index 0000000..3d4b6aa
--- /dev/null
+++ b/user_scanner/user_scan/creative/support_synfig_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_support_synfig_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://support.synfig.org/u/{encoded_user}.json"
+ show_url = f"https://support.synfig.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://support.synfig.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/synfig_forum.py b/user_scanner/user_scan/creative/synfig_forum.py
new file mode 100644
index 0000000..6c92c60
--- /dev/null
+++ b/user_scanner/user_scan/creative/synfig_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_synfig_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forums.synfig.org/u/{encoded_user}.json"
+ show_url = f"https://forums.synfig.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forums.synfig.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/creative/zbrushcentral.py b/user_scanner/user_scan/creative/zbrushcentral.py
new file mode 100644
index 0000000..9d0bbd8
--- /dev/null
+++ b/user_scanner/user_scan/creative/zbrushcentral.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_zbrushcentral(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.zbrushcentral.com/u/{encoded_user}.json"
+ show_url = f"https://www.zbrushcentral.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://www.zbrushcentral.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/entertainment/adultswim_fan.py b/user_scanner/user_scan/entertainment/adultswim_fan.py
new file mode 100644
index 0000000..3920984
--- /dev/null
+++ b/user_scanner/user_scan/entertainment/adultswim_fan.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_adultswim_fan(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://adultswim.fan/api/v3/user"
+ show_url = f"https://adultswim.fan/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/entertainment/ben10club_org.py b/user_scanner/user_scan/entertainment/ben10club_org.py
new file mode 100644
index 0000000..c603954
--- /dev/null
+++ b/user_scanner/user_scan/entertainment/ben10club_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_ben10club_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://ben10club.org/user/{encoded_user}"
+ show_url = f"https://ben10club.org/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/entertainment/dramabeans.py b/user_scanner/user_scan/entertainment/dramabeans.py
new file mode 100644
index 0000000..b2d9346
--- /dev/null
+++ b/user_scanner/user_scan/entertainment/dramabeans.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_dramabeans(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.dramabeans.com/members/{encoded_user}/"
+ show_url = f"https://www.dramabeans.com/members/{encoded_user}/"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/entertainment/help_mkvtoolnix_download.py b/user_scanner/user_scan/entertainment/help_mkvtoolnix_download.py
new file mode 100644
index 0000000..02233ef
--- /dev/null
+++ b/user_scanner/user_scan/entertainment/help_mkvtoolnix_download.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_help_mkvtoolnix_download(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://help.mkvtoolnix.download/u/{encoded_user}.json"
+ show_url = f"https://help.mkvtoolnix.download/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://help.mkvtoolnix.download{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/entertainment/lemming_megumin_org.py b/user_scanner/user_scan/entertainment/lemming_megumin_org.py
new file mode 100644
index 0000000..cbaf417
--- /dev/null
+++ b/user_scanner/user_scan/entertainment/lemming_megumin_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemming_megumin_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemming.megumin.org/api/v3/user"
+ show_url = f"https://lemming.megumin.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/entertainment/vndb_user.py b/user_scanner/user_scan/entertainment/vndb_user.py
new file mode 100644
index 0000000..b414d36
--- /dev/null
+++ b/user_scanner/user_scan/entertainment/vndb_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_vndb_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://vndb.org/u{encoded_user}"
+ show_url = f"https://vndb.org/u{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/1inch_forum.py b/user_scanner/user_scan/finance/1inch_forum.py
new file mode 100644
index 0000000..714f7f8
--- /dev/null
+++ b/user_scanner/user_scan/finance/1inch_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_1inch_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.1inch.io/u/{encoded_user}.json"
+ show_url = f"https://gov.1inch.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.1inch.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/arbitrum_gov.py b/user_scanner/user_scan/finance/arbitrum_gov.py
new file mode 100644
index 0000000..08090a8
--- /dev/null
+++ b/user_scanner/user_scan/finance/arbitrum_gov.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_arbitrum_gov(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.arbitrum.foundation/u/{encoded_user}.json"
+ show_url = f"https://forum.arbitrum.foundation/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.arbitrum.foundation{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/balancer_forum.py b/user_scanner/user_scan/finance/balancer_forum.py
new file mode 100644
index 0000000..714675a
--- /dev/null
+++ b/user_scanner/user_scan/finance/balancer_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_balancer_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.balancer.fi/u/{encoded_user}.json"
+ show_url = f"https://forum.balancer.fi/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.balancer.fi{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/callcentersindia_co_in.py b/user_scanner/user_scan/finance/callcentersindia_co_in.py
new file mode 100644
index 0000000..040af22
--- /dev/null
+++ b/user_scanner/user_scan/finance/callcentersindia_co_in.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_callcentersindia_co_in(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.callcentersindia.co.in/user/{encoded_user}"
+ show_url = f"https://www.callcentersindia.co.in/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/collective_flashbots_net.py b/user_scanner/user_scan/finance/collective_flashbots_net.py
new file mode 100644
index 0000000..80b8a00
--- /dev/null
+++ b/user_scanner/user_scan/finance/collective_flashbots_net.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_collective_flashbots_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://collective.flashbots.net/u/{encoded_user}.json"
+ show_url = f"https://collective.flashbots.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://collective.flashbots.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/community_filecloud_com.py b/user_scanner/user_scan/finance/community_filecloud_com.py
new file mode 100644
index 0000000..cb84e60
--- /dev/null
+++ b/user_scanner/user_scan/finance/community_filecloud_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_filecloud_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.filecloud.com/u/{encoded_user}.json"
+ show_url = f"https://community.filecloud.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.filecloud.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/community_tari_com.py b/user_scanner/user_scan/finance/community_tari_com.py
new file mode 100644
index 0000000..fe356d2
--- /dev/null
+++ b/user_scanner/user_scan/finance/community_tari_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_tari_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.tari.com/u/{encoded_user}.json"
+ show_url = f"https://community.tari.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.tari.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/compound_forum.py b/user_scanner/user_scan/finance/compound_forum.py
new file mode 100644
index 0000000..595c96f
--- /dev/null
+++ b/user_scanner/user_scan/finance/compound_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_compound_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.comp.xyz/u/{encoded_user}.json"
+ show_url = f"https://www.comp.xyz/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://www.comp.xyz{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/cowswap_forum.py b/user_scanner/user_scan/finance/cowswap_forum.py
new file mode 100644
index 0000000..4c644ee
--- /dev/null
+++ b/user_scanner/user_scan/finance/cowswap_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_cowswap_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.cow.fi/u/{encoded_user}.json"
+ show_url = f"https://forum.cow.fi/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.cow.fi{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/dydx_forum.py b/user_scanner/user_scan/finance/dydx_forum.py
new file mode 100644
index 0000000..c750165
--- /dev/null
+++ b/user_scanner/user_scan/finance/dydx_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_dydx_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://dydx.forum/u/{encoded_user}.json"
+ show_url = f"https://dydx.forum/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://dydx.forum{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/ens_dao_forum.py b/user_scanner/user_scan/finance/ens_dao_forum.py
new file mode 100644
index 0000000..4b79bec
--- /dev/null
+++ b/user_scanner/user_scan/finance/ens_dao_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_ens_dao_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discuss.ens.domains/u/{encoded_user}.json"
+ show_url = f"https://discuss.ens.domains/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discuss.ens.domains{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/forum_duniter_org.py b/user_scanner/user_scan/finance/forum_duniter_org.py
new file mode 100644
index 0000000..d1dead2
--- /dev/null
+++ b/user_scanner/user_scan/finance/forum_duniter_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_duniter_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.duniter.org/u/{encoded_user}.json"
+ show_url = f"https://forum.duniter.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.duniter.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/forum_logos_co.py b/user_scanner/user_scan/finance/forum_logos_co.py
new file mode 100644
index 0000000..8e0465e
--- /dev/null
+++ b/user_scanner/user_scan/finance/forum_logos_co.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_logos_co(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.logos.co/u/{encoded_user}.json"
+ show_url = f"https://forum.logos.co/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.logos.co{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/forum_pascom_net.py b/user_scanner/user_scan/finance/forum_pascom_net.py
new file mode 100644
index 0000000..1c65d7f
--- /dev/null
+++ b/user_scanner/user_scan/finance/forum_pascom_net.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_pascom_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.pascom.net/u/{encoded_user}.json"
+ show_url = f"https://forum.pascom.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.pascom.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/forum_pyth_network.py b/user_scanner/user_scan/finance/forum_pyth_network.py
new file mode 100644
index 0000000..6656081
--- /dev/null
+++ b/user_scanner/user_scan/finance/forum_pyth_network.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_pyth_network(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.pyth.network/u/{encoded_user}.json"
+ show_url = f"https://forum.pyth.network/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.pyth.network{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/gitcoin_gov.py b/user_scanner/user_scan/finance/gitcoin_gov.py
new file mode 100644
index 0000000..0ad8910
--- /dev/null
+++ b/user_scanner/user_scan/finance/gitcoin_gov.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_gitcoin_gov(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.gitcoin.co/u/{encoded_user}.json"
+ show_url = f"https://gov.gitcoin.co/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.gitcoin.co{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/gmx_forum.py b/user_scanner/user_scan/finance/gmx_forum.py
new file mode 100644
index 0000000..edb5c7e
--- /dev/null
+++ b/user_scanner/user_scan/finance/gmx_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_gmx_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.gmx.io/u/{encoded_user}.json"
+ show_url = f"https://gov.gmx.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.gmx.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/instadapp_forum.py b/user_scanner/user_scan/finance/instadapp_forum.py
new file mode 100644
index 0000000..7fdd020
--- /dev/null
+++ b/user_scanner/user_scan/finance/instadapp_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_instadapp_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.instadapp.io/u/{encoded_user}.json"
+ show_url = f"https://gov.instadapp.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.instadapp.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/lido_gov_forum.py b/user_scanner/user_scan/finance/lido_gov_forum.py
new file mode 100644
index 0000000..b60cfbe
--- /dev/null
+++ b/user_scanner/user_scan/finance/lido_gov_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lido_gov_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://research.lido.fi/u/{encoded_user}.json"
+ show_url = f"https://research.lido.fi/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://research.lido.fi{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/makerdao_forum.py b/user_scanner/user_scan/finance/makerdao_forum.py
new file mode 100644
index 0000000..433365c
--- /dev/null
+++ b/user_scanner/user_scan/finance/makerdao_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_makerdao_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.makerdao.com/u/{encoded_user}.json"
+ show_url = f"https://forum.makerdao.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.makerdao.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/monero_town.py b/user_scanner/user_scan/finance/monero_town.py
new file mode 100644
index 0000000..dceb406
--- /dev/null
+++ b/user_scanner/user_scan/finance/monero_town.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_monero_town(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://monero.town/api/v3/user"
+ show_url = f"https://monero.town/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/finance/near_governance.py b/user_scanner/user_scan/finance/near_governance.py
new file mode 100644
index 0000000..b36122b
--- /dev/null
+++ b/user_scanner/user_scan/finance/near_governance.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_near_governance(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.near.org/u/{encoded_user}.json"
+ show_url = f"https://gov.near.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.near.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/optimism_gov.py b/user_scanner/user_scan/finance/optimism_gov.py
new file mode 100644
index 0000000..297e575
--- /dev/null
+++ b/user_scanner/user_scan/finance/optimism_gov.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_optimism_gov(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.optimism.io/u/{encoded_user}.json"
+ show_url = f"https://gov.optimism.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.optimism.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/osmosis_forum.py b/user_scanner/user_scan/finance/osmosis_forum.py
new file mode 100644
index 0000000..19fe635
--- /dev/null
+++ b/user_scanner/user_scan/finance/osmosis_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_osmosis_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.osmosis.zone/u/{encoded_user}.json"
+ show_url = f"https://forum.osmosis.zone/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.osmosis.zone{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/realbitcoin_cash.py b/user_scanner/user_scan/finance/realbitcoin_cash.py
new file mode 100644
index 0000000..2cf4f77
--- /dev/null
+++ b/user_scanner/user_scan/finance/realbitcoin_cash.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_realbitcoin_cash(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://realbitcoin.cash/api/v3/user"
+ show_url = f"https://realbitcoin.cash/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/finance/safe_dao_forum.py b/user_scanner/user_scan/finance/safe_dao_forum.py
new file mode 100644
index 0000000..ef16282
--- /dev/null
+++ b/user_scanner/user_scan/finance/safe_dao_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_safe_dao_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.safe.global/u/{encoded_user}.json"
+ show_url = f"https://forum.safe.global/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.safe.global{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/solana_forum.py b/user_scanner/user_scan/finance/solana_forum.py
new file mode 100644
index 0000000..14bb1e6
--- /dev/null
+++ b/user_scanner/user_scan/finance/solana_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_solana_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.solana.com/u/{encoded_user}.json"
+ show_url = f"https://forum.solana.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.solana.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/uniswap_forum.py b/user_scanner/user_scan/finance/uniswap_forum.py
new file mode 100644
index 0000000..aeef8b9
--- /dev/null
+++ b/user_scanner/user_scan/finance/uniswap_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_uniswap_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.uniswap.org/u/{encoded_user}.json"
+ show_url = f"https://gov.uniswap.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.uniswap.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/finance/yearn_forum.py b/user_scanner/user_scan/finance/yearn_forum.py
new file mode 100644
index 0000000..2420650
--- /dev/null
+++ b/user_scanner/user_scan/finance/yearn_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_yearn_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://gov.yearn.fi/u/{encoded_user}.json"
+ show_url = f"https://gov.yearn.fi/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://gov.yearn.fi{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/archidekt_user.py b/user_scanner/user_scan/gaming/archidekt_user.py
new file mode 100644
index 0000000..4ca4609
--- /dev/null
+++ b/user_scanner/user_scan/gaming/archidekt_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_archidekt_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://archidekt.com/u/{encoded_user}"
+ show_url = f"https://archidekt.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/community_etternaonline_com.py b/user_scanner/user_scan/gaming/community_etternaonline_com.py
new file mode 100644
index 0000000..8fe8153
--- /dev/null
+++ b/user_scanner/user_scan/gaming/community_etternaonline_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_etternaonline_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.etternaonline.com/u/{encoded_user}.json"
+ show_url = f"https://community.etternaonline.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.etternaonline.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/crossout_forum.py b/user_scanner/user_scan/gaming/crossout_forum.py
new file mode 100644
index 0000000..ef3e621
--- /dev/null
+++ b/user_scanner/user_scan/gaming/crossout_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_crossout_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.crossout.net/u/{encoded_user}.json"
+ show_url = f"https://forum.crossout.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.crossout.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/discourse_cubecoders_com.py b/user_scanner/user_scan/gaming/discourse_cubecoders_com.py
new file mode 100644
index 0000000..7bba041
--- /dev/null
+++ b/user_scanner/user_scan/gaming/discourse_cubecoders_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_discourse_cubecoders_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discourse.cubecoders.com/u/{encoded_user}.json"
+ show_url = f"https://discourse.cubecoders.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discourse.cubecoders.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/discuss_playit_gg.py b/user_scanner/user_scan/gaming/discuss_playit_gg.py
new file mode 100644
index 0000000..78e58a9
--- /dev/null
+++ b/user_scanner/user_scan/gaming/discuss_playit_gg.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_discuss_playit_gg(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discuss.playit.gg/u/{encoded_user}.json"
+ show_url = f"https://discuss.playit.gg/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discuss.playit.gg{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/dosgamesarchive_com.py b/user_scanner/user_scan/gaming/dosgamesarchive_com.py
new file mode 100644
index 0000000..33bc971
--- /dev/null
+++ b/user_scanner/user_scan/gaming/dosgamesarchive_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_dosgamesarchive_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.dosgamesarchive.com/profile/{encoded_user}"
+ show_url = f"https://www.dosgamesarchive.com/profile/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/forum_gdevelop_io.py b/user_scanner/user_scan/gaming/forum_gdevelop_io.py
new file mode 100644
index 0000000..f06726b
--- /dev/null
+++ b/user_scanner/user_scan/gaming/forum_gdevelop_io.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_gdevelop_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.gdevelop.io/u/{encoded_user}.json"
+ show_url = f"https://forum.gdevelop.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.gdevelop.io{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/galgame_dev.py b/user_scanner/user_scan/gaming/galgame_dev.py
new file mode 100644
index 0000000..1254882
--- /dev/null
+++ b/user_scanner/user_scan/gaming/galgame_dev.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_galgame_dev(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://galgame.dev/user/{encoded_user}"
+ show_url = f"https://galgame.dev/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/git_donutteam_com.py b/user_scanner/user_scan/gaming/git_donutteam_com.py
new file mode 100644
index 0000000..90c0433
--- /dev/null
+++ b/user_scanner/user_scan/gaming/git_donutteam_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_donutteam_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.donutteam.com/{encoded_user}"
+ show_url = f"https://git.donutteam.com/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/git_eden_emu_dev.py b/user_scanner/user_scan/gaming/git_eden_emu_dev.py
new file mode 100644
index 0000000..f755b5c
--- /dev/null
+++ b/user_scanner/user_scan/gaming/git_eden_emu_dev.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_eden_emu_dev(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.eden-emu.dev/{encoded_user}"
+ show_url = f"https://git.eden-emu.dev/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/git_minestar_com_ua.py b/user_scanner/user_scan/gaming/git_minestar_com_ua.py
new file mode 100644
index 0000000..9b9c18b
--- /dev/null
+++ b/user_scanner/user_scan/gaming/git_minestar_com_ua.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_minestar_com_ua(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.minestar.com.ua/{encoded_user}"
+ show_url = f"https://git.minestar.com.ua/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/git_xeondev_com.py b/user_scanner/user_scan/gaming/git_xeondev_com.py
new file mode 100644
index 0000000..eb8d80c
--- /dev/null
+++ b/user_scanner/user_scan/gaming/git_xeondev_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_xeondev_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.xeondev.com/{encoded_user}"
+ show_url = f"https://git.xeondev.com/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/hub_jmonkeyengine_org.py b/user_scanner/user_scan/gaming/hub_jmonkeyengine_org.py
new file mode 100644
index 0000000..3fca2a3
--- /dev/null
+++ b/user_scanner/user_scan/gaming/hub_jmonkeyengine_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_hub_jmonkeyengine_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://hub.jmonkeyengine.org/u/{encoded_user}.json"
+ show_url = f"https://hub.jmonkeyengine.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://hub.jmonkeyengine.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/kriper_net.py b/user_scanner/user_scan/gaming/kriper_net.py
new file mode 100644
index 0000000..94ab6b1
--- /dev/null
+++ b/user_scanner/user_scan/gaming/kriper_net.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_kriper_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://kriper.net/user/{encoded_user}/"
+ show_url = f"https://kriper.net/user/{encoded_user}/"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/lemmy_rochegmr_com.py b/user_scanner/user_scan/gaming/lemmy_rochegmr_com.py
new file mode 100644
index 0000000..471f935
--- /dev/null
+++ b/user_scanner/user_scan/gaming/lemmy_rochegmr_com.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_rochegmr_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.rochegmr.com/api/v3/user"
+ show_url = f"https://lemmy.rochegmr.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/gaming/lemmy_runesmite_com.py b/user_scanner/user_scan/gaming/lemmy_runesmite_com.py
new file mode 100644
index 0000000..8a44645
--- /dev/null
+++ b/user_scanner/user_scan/gaming/lemmy_runesmite_com.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_runesmite_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.runesmite.com/api/v3/user"
+ show_url = f"https://lemmy.runesmite.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/gaming/lemmy_vg.py b/user_scanner/user_scan/gaming/lemmy_vg.py
new file mode 100644
index 0000000..2ef51a5
--- /dev/null
+++ b/user_scanner/user_scan/gaming/lemmy_vg.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_vg(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.vg/api/v3/user"
+ show_url = f"https://lemmy.vg/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/gaming/libertycity_ru.py b/user_scanner/user_scan/gaming/libertycity_ru.py
new file mode 100644
index 0000000..c3c0049
--- /dev/null
+++ b/user_scanner/user_scan/gaming/libertycity_ru.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_libertycity_ru(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://libertycity.ru/user/{encoded_user}/"
+ show_url = f"https://libertycity.ru/user/{encoded_user}/"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/monogame_forum.py b/user_scanner/user_scan/gaming/monogame_forum.py
new file mode 100644
index 0000000..53333da
--- /dev/null
+++ b/user_scanner/user_scan/gaming/monogame_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_monogame_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.monogame.net/u/{encoded_user}.json"
+ show_url = f"https://community.monogame.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.monogame.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/moxfield_user.py b/user_scanner/user_scan/gaming/moxfield_user.py
new file mode 100644
index 0000000..c471376
--- /dev/null
+++ b/user_scanner/user_scan/gaming/moxfield_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_moxfield_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.moxfield.com/users/{encoded_user}"
+ show_url = f"https://www.moxfield.com/users/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/myvideogamelist_com.py b/user_scanner/user_scan/gaming/myvideogamelist_com.py
new file mode 100644
index 0000000..f4396d4
--- /dev/null
+++ b/user_scanner/user_scan/gaming/myvideogamelist_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_myvideogamelist_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://myvideogamelist.com/profile/{encoded_user}"
+ show_url = f"https://myvideogamelist.com/profile/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/online_ts2009_com.py b/user_scanner/user_scan/gaming/online_ts2009_com.py
new file mode 100644
index 0000000..78fb9fe
--- /dev/null
+++ b/user_scanner/user_scan/gaming/online_ts2009_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_online_ts2009_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://online.ts2009.com/mediaWiki/User:{encoded_user}"
+ show_url = f"https://online.ts2009.com/mediaWiki/User:{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/pokemondb_net.py b/user_scanner/user_scan/gaming/pokemondb_net.py
new file mode 100644
index 0000000..f5d8178
--- /dev/null
+++ b/user_scanner/user_scan/gaming/pokemondb_net.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_pokemondb_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://pokemondb.net/pokebase/user/{encoded_user}"
+ show_url = f"https://pokemondb.net/pokebase/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/remix64_com.py b/user_scanner/user_scan/gaming/remix64_com.py
new file mode 100644
index 0000000..1a952eb
--- /dev/null
+++ b/user_scanner/user_scan/gaming/remix64_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_remix64_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://remix64.com/member/{encoded_user}/"
+ show_url = f"https://remix64.com/member/{encoded_user}/"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/spongepowered.py b/user_scanner/user_scan/gaming/spongepowered.py
new file mode 100644
index 0000000..35dc4e7
--- /dev/null
+++ b/user_scanner/user_scan/gaming/spongepowered.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_spongepowered(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forums.spongepowered.org/u/{encoded_user}.json"
+ show_url = f"https://forums.spongepowered.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forums.spongepowered.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/te4_org.py b/user_scanner/user_scan/gaming/te4_org.py
new file mode 100644
index 0000000..021c0ff
--- /dev/null
+++ b/user_scanner/user_scan/gaming/te4_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_te4_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://te4.org/users/{encoded_user}"
+ show_url = f"https://te4.org/users/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/truckersmp_user.py b/user_scanner/user_scan/gaming/truckersmp_user.py
new file mode 100644
index 0000000..9bbcba6
--- /dev/null
+++ b/user_scanner/user_scan/gaming/truckersmp_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_truckersmp_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://truckersmp.com/user/{encoded_user}"
+ show_url = f"https://truckersmp.com/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/gaming/wiki_swcity_net.py b/user_scanner/user_scan/gaming/wiki_swcity_net.py
new file mode 100644
index 0000000..8eb2d05
--- /dev/null
+++ b/user_scanner/user_scan/gaming/wiki_swcity_net.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_wiki_swcity_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://wiki.swcity.net/Profiles/{encoded_user}"
+ show_url = f"https://wiki.swcity.net/Profiles/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/alsa_project_org.py b/user_scanner/user_scan/learning/alsa_project_org.py
new file mode 100644
index 0000000..30a2c98
--- /dev/null
+++ b/user_scanner/user_scan/learning/alsa_project_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_alsa_project_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://alsa-project.org/wiki/User:{encoded_user}"
+ show_url = f"https://alsa-project.org/wiki/User:{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/audio_drama_com.py b/user_scanner/user_scan/learning/audio_drama_com.py
new file mode 100644
index 0000000..24ba7ed
--- /dev/null
+++ b/user_scanner/user_scan/learning/audio_drama_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_audio_drama_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"http://audio-drama.com/doku.php/directory/u/{encoded_user}"
+ show_url = f"http://audio-drama.com/doku.php/directory/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/books_superawesomecorp_space.py b/user_scanner/user_scan/learning/books_superawesomecorp_space.py
new file mode 100644
index 0000000..0fb2d1b
--- /dev/null
+++ b/user_scanner/user_scan/learning/books_superawesomecorp_space.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_books_superawesomecorp_space(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://books.superawesomecorp.space/user/{encoded_user}"
+ show_url = f"https://books.superawesomecorp.space/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/bouquins_zbeul_fr.py b/user_scanner/user_scan/learning/bouquins_zbeul_fr.py
new file mode 100644
index 0000000..4b5290d
--- /dev/null
+++ b/user_scanner/user_scan/learning/bouquins_zbeul_fr.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_bouquins_zbeul_fr(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://bouquins.zbeul.fr/user/{encoded_user}"
+ show_url = f"https://bouquins.zbeul.fr/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/forum_dynare_org.py b/user_scanner/user_scan/learning/forum_dynare_org.py
new file mode 100644
index 0000000..acca210
--- /dev/null
+++ b/user_scanner/user_scan/learning/forum_dynare_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_dynare_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.dynare.org/u/{encoded_user}.json"
+ show_url = f"https://forum.dynare.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.dynare.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/forum_mothur_org.py b/user_scanner/user_scan/learning/forum_mothur_org.py
new file mode 100644
index 0000000..9544d15
--- /dev/null
+++ b/user_scanner/user_scan/learning/forum_mothur_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_mothur_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.mothur.org/u/{encoded_user}.json"
+ show_url = f"https://forum.mothur.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.mothur.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/forumcdn_freemdict_com.py b/user_scanner/user_scan/learning/forumcdn_freemdict_com.py
new file mode 100644
index 0000000..ecaf301
--- /dev/null
+++ b/user_scanner/user_scan/learning/forumcdn_freemdict_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forumcdn_freemdict_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forumcdn.freemdict.com/u/{encoded_user}.json"
+ show_url = f"https://forumcdn.freemdict.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forumcdn.freemdict.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/galaxyproject_community.py b/user_scanner/user_scan/learning/galaxyproject_community.py
new file mode 100644
index 0000000..355e386
--- /dev/null
+++ b/user_scanner/user_scan/learning/galaxyproject_community.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_galaxyproject_community(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://help.galaxyproject.org/u/{encoded_user}.json"
+ show_url = f"https://help.galaxyproject.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://help.galaxyproject.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/git_aquila_consortium_org.py b/user_scanner/user_scan/learning/git_aquila_consortium_org.py
new file mode 100644
index 0000000..f3b522b
--- /dev/null
+++ b/user_scanner/user_scan/learning/git_aquila_consortium_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_aquila_consortium_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.aquila-consortium.org/{encoded_user}"
+ show_url = f"https://git.aquila-consortium.org/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/hub_datalad_org.py b/user_scanner/user_scan/learning/hub_datalad_org.py
new file mode 100644
index 0000000..c5eab40
--- /dev/null
+++ b/user_scanner/user_scan/learning/hub_datalad_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_hub_datalad_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://hub.datalad.org/{encoded_user}"
+ show_url = f"https://hub.datalad.org/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/montessorialbum_com.py b/user_scanner/user_scan/learning/montessorialbum_com.py
new file mode 100644
index 0000000..d8f67b0
--- /dev/null
+++ b/user_scanner/user_scan/learning/montessorialbum_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_montessorialbum_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://montessorialbum.com/montessori/index.php/User:{encoded_user}"
+ show_url = f"https://montessorialbum.com/montessori/index.php/User:{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/neurostars_community.py b/user_scanner/user_scan/learning/neurostars_community.py
new file mode 100644
index 0000000..e8d2f00
--- /dev/null
+++ b/user_scanner/user_scan/learning/neurostars_community.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_neurostars_community(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://neurostars.org/u/{encoded_user}.json"
+ show_url = f"https://neurostars.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://neurostars.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/openlibrary_user.py b/user_scanner/user_scan/learning/openlibrary_user.py
new file mode 100644
index 0000000..eb5808a
--- /dev/null
+++ b/user_scanner/user_scan/learning/openlibrary_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_openlibrary_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://openlibrary.org/people/{encoded_user}"
+ show_url = f"https://openlibrary.org/people/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/philosophy_cafe.py b/user_scanner/user_scan/learning/philosophy_cafe.py
new file mode 100644
index 0000000..1e691af
--- /dev/null
+++ b/user_scanner/user_scan/learning/philosophy_cafe.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_philosophy_cafe(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://philosophy.cafe/api/v3/user"
+ show_url = f"https://philosophy.cafe/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/learning/philpeople_user.py b/user_scanner/user_scan/learning/philpeople_user.py
new file mode 100644
index 0000000..04fb5e2
--- /dev/null
+++ b/user_scanner/user_scan/learning/philpeople_user.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_philpeople_user(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://philpeople.org/profiles/{encoded_user}"
+ show_url = f"https://philpeople.org/profiles/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/polyglot_city.py b/user_scanner/user_scan/learning/polyglot_city.py
new file mode 100644
index 0000000..7178aec
--- /dev/null
+++ b/user_scanner/user_scan/learning/polyglot_city.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_polyglot_city(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://polyglot.city/@{encoded_user}"
+ show_url = f"https://polyglot.city/@{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/ribewiki_dk.py b/user_scanner/user_scan/learning/ribewiki_dk.py
new file mode 100644
index 0000000..1d59cab
--- /dev/null
+++ b/user_scanner/user_scan/learning/ribewiki_dk.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_ribewiki_dk(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://ribewiki.dk/da/User:{encoded_user}"
+ show_url = f"https://ribewiki.dk/da/User:{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/skritter_community.py b/user_scanner/user_scan/learning/skritter_community.py
new file mode 100644
index 0000000..ccbe545
--- /dev/null
+++ b/user_scanner/user_scan/learning/skritter_community.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_skritter_community(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discourse.skritter.com/u/{encoded_user}.json"
+ show_url = f"https://discourse.skritter.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discourse.skritter.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/slicer_community.py b/user_scanner/user_scan/learning/slicer_community.py
new file mode 100644
index 0000000..56741e6
--- /dev/null
+++ b/user_scanner/user_scan/learning/slicer_community.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_slicer_community(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discourse.slicer.org/u/{encoded_user}.json"
+ show_url = f"https://discourse.slicer.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discourse.slicer.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/support_ibiblio_org.py b/user_scanner/user_scan/learning/support_ibiblio_org.py
new file mode 100644
index 0000000..e439e28
--- /dev/null
+++ b/user_scanner/user_scan/learning/support_ibiblio_org.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_support_ibiblio_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://support.ibiblio.org/u/{encoded_user}.json"
+ show_url = f"https://support.ibiblio.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://support.ibiblio.org{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/learning/thinktank_brainstormes_org.py b/user_scanner/user_scan/learning/thinktank_brainstormes_org.py
new file mode 100644
index 0000000..e8e8d33
--- /dev/null
+++ b/user_scanner/user_scan/learning/thinktank_brainstormes_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_thinktank_brainstormes_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://thinktank.brainstormes.org/api/v3/user"
+ show_url = f"https://thinktank.brainstormes.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/learning/wiki_fernuni_hagen_de.py b/user_scanner/user_scan/learning/wiki_fernuni_hagen_de.py
new file mode 100644
index 0000000..96ecb69
--- /dev/null
+++ b/user_scanner/user_scan/learning/wiki_fernuni_hagen_de.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_wiki_fernuni_hagen_de(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://wiki.fernuni-hagen.de/helpdesk/User:{encoded_user}"
+ show_url = f"https://wiki.fernuni-hagen.de/helpdesk/User:{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/438punk_house.py b/user_scanner/user_scan/music/438punk_house.py
new file mode 100644
index 0000000..f7ab942
--- /dev/null
+++ b/user_scanner/user_scan/music/438punk_house.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_438punk_house(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://438punk.house/@{encoded_user}"
+ show_url = f"https://438punk.house/@{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/community_jthink_net.py b/user_scanner/user_scan/music/community_jthink_net.py
new file mode 100644
index 0000000..03519f1
--- /dev/null
+++ b/user_scanner/user_scan/music/community_jthink_net.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_community_jthink_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.jthink.net/u/{encoded_user}.json"
+ show_url = f"https://community.jthink.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.jthink.net{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/discuss_lexicondj_com.py b/user_scanner/user_scan/music/discuss_lexicondj_com.py
new file mode 100644
index 0000000..69870a8
--- /dev/null
+++ b/user_scanner/user_scan/music/discuss_lexicondj_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_discuss_lexicondj_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://discuss.lexicondj.com/u/{encoded_user}.json"
+ show_url = f"https://discuss.lexicondj.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://discuss.lexicondj.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/dubstepforum_com.py b/user_scanner/user_scan/music/dubstepforum_com.py
new file mode 100644
index 0000000..2a6ca37
--- /dev/null
+++ b/user_scanner/user_scan/music/dubstepforum_com.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_dubstepforum_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.dubstepforum.com/forum/memberlist.php?mode=viewprofile&un={encoded_user}"
+ show_url = f"https://www.dubstepforum.com/forum/memberlist.php?mode=viewprofile&un={encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/elektron_users.py b/user_scanner/user_scan/music/elektron_users.py
new file mode 100644
index 0000000..5878076
--- /dev/null
+++ b/user_scanner/user_scan/music/elektron_users.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_elektron_users(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://www.elektronauts.com/u/{encoded_user}.json"
+ show_url = f"https://www.elektronauts.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://www.elektronauts.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/forum_bome_com.py b/user_scanner/user_scan/music/forum_bome_com.py
new file mode 100644
index 0000000..4e8e93e
--- /dev/null
+++ b/user_scanner/user_scan/music/forum_bome_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_bome_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.bome.com/u/{encoded_user}.json"
+ show_url = f"https://forum.bome.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.bome.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/forum_cabbageaudio_com.py b/user_scanner/user_scan/music/forum_cabbageaudio_com.py
new file mode 100644
index 0000000..1f6cd90
--- /dev/null
+++ b/user_scanner/user_scan/music/forum_cabbageaudio_com.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_cabbageaudio_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.cabbageaudio.com/u/{encoded_user}.json"
+ show_url = f"https://forum.cabbageaudio.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.cabbageaudio.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/forum_puredsd_ru.py b/user_scanner/user_scan/music/forum_puredsd_ru.py
new file mode 100644
index 0000000..ec22868
--- /dev/null
+++ b/user_scanner/user_scan/music/forum_puredsd_ru.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_puredsd_ru(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.puredsd.ru/u/{encoded_user}.json"
+ show_url = f"https://forum.puredsd.ru/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.puredsd.ru{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/forum_strawberrymusicplayer_org.py b/user_scanner/user_scan/music/forum_strawberrymusicplayer_org.py
new file mode 100644
index 0000000..4937874
--- /dev/null
+++ b/user_scanner/user_scan/music/forum_strawberrymusicplayer_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_strawberrymusicplayer_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.strawberrymusicplayer.org/user/{encoded_user}"
+ show_url = f"https://forum.strawberrymusicplayer.org/user/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/forum_vital_audio.py b/user_scanner/user_scan/music/forum_vital_audio.py
new file mode 100644
index 0000000..e5dabe2
--- /dev/null
+++ b/user_scanner/user_scan/music/forum_vital_audio.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forum_vital_audio(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.vital.audio/u/{encoded_user}.json"
+ show_url = f"https://forum.vital.audio/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.vital.audio{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/git_ardour_org.py b/user_scanner/user_scan/music/git_ardour_org.py
new file mode 100644
index 0000000..bbad2bc
--- /dev/null
+++ b/user_scanner/user_scan/music/git_ardour_org.py
@@ -0,0 +1,65 @@
+import re
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_git_ardour_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://git.ardour.org/{encoded_user}"
+ show_url = f"https://git.ardour.org/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ return Result.available(url=show_url)
+
+ if response.status_code == 200:
+ text = response.text
+ user_lower = user.lower()
+ text_lower = text.lower()
+
+ # Check for soft 404 or not-found text
+ not_found_markers = [
+ "user not found",
+ "member not found",
+ "profile does not exist",
+ "user does not exist",
+ "page not found",
+ "no user found",
+ "could not be found",
+ ]
+ if any(marker in text_lower for marker in not_found_markers):
+ return Result.available(url=show_url)
+
+ # Strict verification of user presence in 200 response
+ if user_lower in text_lower:
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ # Extract title or heading if present
+ title_match = re.search(r"<title>(.*?)</title>", text, re.IGNORECASE | re.DOTALL)
+ if title_match:
+ title_clean = title_match.group(1).strip()
+ if title_clean and len(title_clean) < 120:
+ extra["title"] = title_clean
+
+ # Extract avatar img if present
+ avatar_match = re.search(
+ r'<img[^>]+src=["\'](https?://[^"\']*(?:avatar|profile|user)[^"\']*)["\']',
+ text,
+ re.IGNORECASE,
+ )
+ if avatar_match:
+ media["avatar"] = avatar_match.group(1)
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+
+ return Result.error("Profile page returned 200 but target username was not found")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/soundradix_forum.py b/user_scanner/user_scan/music/soundradix_forum.py
new file mode 100644
index 0000000..d72f72e
--- /dev/null
+++ b/user_scanner/user_scan/music/soundradix_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_soundradix_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://forum.soundradix.com/u/{encoded_user}.json"
+ show_url = f"https://forum.soundradix.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://forum.soundradix.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/music/vcvrack_forum.py b/user_scanner/user_scan/music/vcvrack_forum.py
new file mode 100644
index 0000000..14f98f8
--- /dev/null
+++ b/user_scanner/user_scan/music/vcvrack_forum.py
@@ -0,0 +1,67 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_vcvrack_forum(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = f"https://community.vcvrack.com/u/{encoded_user}.json"
+ show_url = f"https://community.vcvrack.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ if (
+ data.get("error_type") == "not_found"
+ or any("not be found" in str(err).lower() for err in data.get("errors", []))
+ ):
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Discourse 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ user_obj = data.get("user")
+ if user_obj and isinstance(user_obj, dict) and user_obj.get("username"):
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if user_obj.get("name"):
+ extra["name"] = str(user_obj["name"])
+ if user_obj.get("title"):
+ extra["title"] = str(user_obj["title"])
+ if user_obj.get("location"):
+ extra["location"] = str(user_obj["location"])
+ if user_obj.get("website_name") or user_obj.get("website"):
+ extra["website"] = str(user_obj.get("website") or user_obj.get("website_name"))
+ if user_obj.get("trust_level") is not None:
+ extra["trust_level"] = str(user_obj["trust_level"])
+ if user_obj.get("badge_count") is not None:
+ extra["badges"] = str(user_obj["badge_count"])
+ if user_obj.get("created_at"):
+ extra["joined"] = str(user_obj["created_at"])
+ if user_obj.get("bio_raw") or user_obj.get("bio_cooked"):
+ extra["bio"] = str(user_obj.get("bio_raw") or user_obj.get("bio_cooked"))
+
+ avatar_template = user_obj.get("avatar_template")
+ if avatar_template:
+ avatar_url = avatar_template.replace("{size}", "240")
+ if avatar_url.startswith("/"):
+ avatar_url = f"https://community.vcvrack.com{avatar_url}"
+ media["avatar"] = avatar_url
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Discourse 200 response missing valid user payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)
diff --git a/user_scanner/user_scan/social/aggregatet_org.py b/user_scanner/user_scan/social/aggregatet_org.py
new file mode 100644
index 0000000..a6fb5a0
--- /dev/null
+++ b/user_scanner/user_scan/social/aggregatet_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_aggregatet_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://aggregatet.org/api/v3/user"
+ show_url = f"https://aggregatet.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/baraza_africa.py b/user_scanner/user_scan/social/baraza_africa.py
new file mode 100644
index 0000000..ed0bb28
--- /dev/null
+++ b/user_scanner/user_scan/social/baraza_africa.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_baraza_africa(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://baraza.africa/api/v3/user"
+ show_url = f"https://baraza.africa/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/beehaw_org.py b/user_scanner/user_scan/social/beehaw_org.py
new file mode 100644
index 0000000..de51597
--- /dev/null
+++ b/user_scanner/user_scan/social/beehaw_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_beehaw_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://beehaw.org/api/v3/user"
+ show_url = f"https://beehaw.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/belfry_rip.py b/user_scanner/user_scan/social/belfry_rip.py
new file mode 100644
index 0000000..1abb5cc
--- /dev/null
+++ b/user_scanner/user_scan/social/belfry_rip.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_belfry_rip(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://belfry.rip/api/v3/user"
+ show_url = f"https://belfry.rip/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/chachara_club.py b/user_scanner/user_scan/social/chachara_club.py
new file mode 100644
index 0000000..594b529
--- /dev/null
+++ b/user_scanner/user_scan/social/chachara_club.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_chachara_club(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://chachara.club/api/v3/user"
+ show_url = f"https://chachara.club/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/communick_news.py b/user_scanner/user_scan/social/communick_news.py
new file mode 100644
index 0000000..e6bc4ac
--- /dev/null
+++ b/user_scanner/user_scan/social/communick_news.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_communick_news(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://communick.news/api/v3/user"
+ show_url = f"https://communick.news/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/devblogs_io.py b/user_scanner/user_scan/social/devblogs_io.py
new file mode 100644
index 0000000..8c5a03e
--- /dev/null
+++ b/user_scanner/user_scan/social/devblogs_io.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_devblogs_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://devblogs.io/api/v3/user"
+ show_url = f"https://devblogs.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/discover_deltanauten_de.py b/user_scanner/user_scan/social/discover_deltanauten_de.py
new file mode 100644
index 0000000..13d8d87
--- /dev/null
+++ b/user_scanner/user_scan/social/discover_deltanauten_de.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_discover_deltanauten_de(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://discover.deltanauten.de/api/v3/user"
+ show_url = f"https://discover.deltanauten.de/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/fasheng_ing.py b/user_scanner/user_scan/social/fasheng_ing.py
new file mode 100644
index 0000000..fe242ae
--- /dev/null
+++ b/user_scanner/user_scan/social/fasheng_ing.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_fasheng_ing(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://fasheng.ing/api/v3/user"
+ show_url = f"https://fasheng.ing/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/feddit_rocks.py b/user_scanner/user_scan/social/feddit_rocks.py
new file mode 100644
index 0000000..e04a393
--- /dev/null
+++ b/user_scanner/user_scan/social/feddit_rocks.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_feddit_rocks(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://feddit.rocks/api/v3/user"
+ show_url = f"https://feddit.rocks/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/forums_rereading_space.py b/user_scanner/user_scan/social/forums_rereading_space.py
new file mode 100644
index 0000000..18dc337
--- /dev/null
+++ b/user_scanner/user_scan/social/forums_rereading_space.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_forums_rereading_space(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://forums.rereading.space/api/v3/user"
+ show_url = f"https://forums.rereading.space/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/group_lt.py b/user_scanner/user_scan/social/group_lt.py
new file mode 100644
index 0000000..f0922e4
--- /dev/null
+++ b/user_scanner/user_scan/social/group_lt.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_group_lt(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://group.lt/api/v3/user"
+ show_url = f"https://group.lt/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/helpos_ca.py b/user_scanner/user_scan/social/helpos_ca.py
new file mode 100644
index 0000000..ee61810
--- /dev/null
+++ b/user_scanner/user_scan/social/helpos_ca.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_helpos_ca(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://helpos.ca/api/v3/user"
+ show_url = f"https://helpos.ca/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/kitty_ly.py b/user_scanner/user_scan/social/kitty_ly.py
new file mode 100644
index 0000000..45196e6
--- /dev/null
+++ b/user_scanner/user_scan/social/kitty_ly.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_kitty_ly(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://kitty.ly/api/v3/user"
+ show_url = f"https://kitty.ly/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/l_tta_wtf.py b/user_scanner/user_scan/social/l_tta_wtf.py
new file mode 100644
index 0000000..c89d4e9
--- /dev/null
+++ b/user_scanner/user_scan/social/l_tta_wtf.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_l_tta_wtf(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://l.tta.wtf/api/v3/user"
+ show_url = f"https://l.tta.wtf/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lem_cochrun_xyz.py b/user_scanner/user_scan/social/lem_cochrun_xyz.py
new file mode 100644
index 0000000..fea8cf2
--- /dev/null
+++ b/user_scanner/user_scan/social/lem_cochrun_xyz.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lem_cochrun_xyz(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lem.cochrun.xyz/api/v3/user"
+ show_url = f"https://lem.cochrun.xyz/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lem_trashbrain_org.py b/user_scanner/user_scan/social/lem_trashbrain_org.py
new file mode 100644
index 0000000..e8407da
--- /dev/null
+++ b/user_scanner/user_scan/social/lem_trashbrain_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lem_trashbrain_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lem.trashbrain.org/api/v3/user"
+ show_url = f"https://lem.trashbrain.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_4d2_org.py b/user_scanner/user_scan/social/lemmy_4d2_org.py
new file mode 100644
index 0000000..f2ab345
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_4d2_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_4d2_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.4d2.org/api/v3/user"
+ show_url = f"https://lemmy.4d2.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_8th_world.py b/user_scanner/user_scan/social/lemmy_8th_world.py
new file mode 100644
index 0000000..d65439b
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_8th_world.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_8th_world(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.8th.world/api/v3/user"
+ show_url = f"https://lemmy.8th.world/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_bestiver_se.py b/user_scanner/user_scan/social/lemmy_bestiver_se.py
new file mode 100644
index 0000000..0863cb9
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_bestiver_se.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_bestiver_se(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.bestiver.se/api/v3/user"
+ show_url = f"https://lemmy.bestiver.se/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_billiam_net.py b/user_scanner/user_scan/social/lemmy_billiam_net.py
new file mode 100644
index 0000000..6d4f30a
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_billiam_net.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_billiam_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.billiam.net/api/v3/user"
+ show_url = f"https://lemmy.billiam.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_ca.py b/user_scanner/user_scan/social/lemmy_ca.py
new file mode 100644
index 0000000..90600cb
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_ca.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_ca(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.ca/api/v3/user"
+ show_url = f"https://lemmy.ca/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_criticalbasics_xyz.py b/user_scanner/user_scan/social/lemmy_criticalbasics_xyz.py
new file mode 100644
index 0000000..e7d0ba6
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_criticalbasics_xyz.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_criticalbasics_xyz(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.criticalbasics.xyz/api/v3/user"
+ show_url = f"https://lemmy.criticalbasics.xyz/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_devr_cc.py b/user_scanner/user_scan/social/lemmy_devr_cc.py
new file mode 100644
index 0000000..1be1d80
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_devr_cc.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_devr_cc(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.devr.cc/api/v3/user"
+ show_url = f"https://lemmy.devr.cc/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_evangineer_net.py b/user_scanner/user_scan/social/lemmy_evangineer_net.py
new file mode 100644
index 0000000..6f24810
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_evangineer_net.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_evangineer_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.evangineer.net/api/v3/user"
+ show_url = f"https://lemmy.evangineer.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_fait_ch.py b/user_scanner/user_scan/social/lemmy_fait_ch.py
new file mode 100644
index 0000000..7969749
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_fait_ch.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_fait_ch(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.fait.ch/api/v3/user"
+ show_url = f"https://lemmy.fait.ch/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_fediverse_jp.py b/user_scanner/user_scan/social/lemmy_fediverse_jp.py
new file mode 100644
index 0000000..f25558c
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_fediverse_jp.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_fediverse_jp(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.fediverse.jp/api/v3/user"
+ show_url = f"https://lemmy.fediverse.jp/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_frozeninferno_xyz.py b/user_scanner/user_scan/social/lemmy_frozeninferno_xyz.py
new file mode 100644
index 0000000..567ea80
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_frozeninferno_xyz.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_frozeninferno_xyz(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.frozeninferno.xyz/api/v3/user"
+ show_url = f"https://lemmy.frozeninferno.xyz/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_funami_tech.py b/user_scanner/user_scan/social/lemmy_funami_tech.py
new file mode 100644
index 0000000..680676b
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_funami_tech.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_funami_tech(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.funami.tech/api/v3/user"
+ show_url = f"https://lemmy.funami.tech/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_grey_ooo.py b/user_scanner/user_scan/social/lemmy_grey_ooo.py
new file mode 100644
index 0000000..b3bd233
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_grey_ooo.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_grey_ooo(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.grey.ooo/api/v3/user"
+ show_url = f"https://lemmy.grey.ooo/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_grys_it.py b/user_scanner/user_scan/social/lemmy_grys_it.py
new file mode 100644
index 0000000..65b4dec
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_grys_it.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_grys_it(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.grys.it/api/v3/user"
+ show_url = f"https://lemmy.grys.it/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_helios42_de.py b/user_scanner/user_scan/social/lemmy_helios42_de.py
new file mode 100644
index 0000000..5d54610
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_helios42_de.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_helios42_de(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.helios42.de/api/v3/user"
+ show_url = f"https://lemmy.helios42.de/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_horwood_cloud.py b/user_scanner/user_scan/social/lemmy_horwood_cloud.py
new file mode 100644
index 0000000..3dc6ff5
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_horwood_cloud.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_horwood_cloud(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.horwood.cloud/api/v3/user"
+ show_url = f"https://lemmy.horwood.cloud/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_inbutts_lol.py b/user_scanner/user_scan/social/lemmy_inbutts_lol.py
new file mode 100644
index 0000000..66da83c
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_inbutts_lol.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_inbutts_lol(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.inbutts.lol/api/v3/user"
+ show_url = f"https://lemmy.inbutts.lol/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_k2pk_com.py b/user_scanner/user_scan/social/lemmy_k2pk_com.py
new file mode 100644
index 0000000..fae04d3
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_k2pk_com.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_k2pk_com(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.k2pk.com/api/v3/user"
+ show_url = f"https://lemmy.k2pk.com/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_keimai_space.py b/user_scanner/user_scan/social/lemmy_keimai_space.py
new file mode 100644
index 0000000..4b58963
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_keimai_space.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_keimai_space(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.keimai.space/api/v3/user"
+ show_url = f"https://lemmy.keimai.space/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_lidstah_info.py b/user_scanner/user_scan/social/lemmy_lidstah_info.py
new file mode 100644
index 0000000..00248d8
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_lidstah_info.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_lidstah_info(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.lidstah.info/api/v3/user"
+ show_url = f"https://lemmy.lidstah.info/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_lqx_net.py b/user_scanner/user_scan/social/lemmy_lqx_net.py
new file mode 100644
index 0000000..85db5bf
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_lqx_net.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_lqx_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.lqx.net/api/v3/user"
+ show_url = f"https://lemmy.lqx.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_ml.py b/user_scanner/user_scan/social/lemmy_ml.py
new file mode 100644
index 0000000..3150322
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_ml.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_ml(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.ml/api/v3/user"
+ show_url = f"https://lemmy.ml/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_moonling_nl.py b/user_scanner/user_scan/social/lemmy_moonling_nl.py
new file mode 100644
index 0000000..94b6840
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_moonling_nl.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_moonling_nl(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.moonling.nl/api/v3/user"
+ show_url = f"https://lemmy.moonling.nl/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_onlylans_io.py b/user_scanner/user_scan/social/lemmy_onlylans_io.py
new file mode 100644
index 0000000..7136174
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_onlylans_io.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_onlylans_io(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.onlylans.io/api/v3/user"
+ show_url = f"https://lemmy.onlylans.io/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/lemmy_tgxn_net.py b/user_scanner/user_scan/social/lemmy_tgxn_net.py
new file mode 100644
index 0000000..5f6aa54
--- /dev/null
+++ b/user_scanner/user_scan/social/lemmy_tgxn_net.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_lemmy_tgxn_net(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://lemmy.tgxn.net/api/v3/user"
+ show_url = f"https://lemmy.tgxn.net/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/piefed_diffrint_org.py b/user_scanner/user_scan/social/piefed_diffrint_org.py
new file mode 100644
index 0000000..5a6861f
--- /dev/null
+++ b/user_scanner/user_scan/social/piefed_diffrint_org.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_piefed_diffrint_org(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://piefed.diffrint.org/api/v3/user"
+ show_url = f"https://piefed.diffrint.org/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/sh_itjust_works.py b/user_scanner/user_scan/social/sh_itjust_works.py
new file mode 100644
index 0000000..4e7b90d
--- /dev/null
+++ b/user_scanner/user_scan/social/sh_itjust_works.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_sh_itjust_works(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://sh.itjust.works/api/v3/user"
+ show_url = f"https://sh.itjust.works/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/sopuli_xyz.py b/user_scanner/user_scan/social/sopuli_xyz.py
new file mode 100644
index 0000000..07eec50
--- /dev/null
+++ b/user_scanner/user_scan/social/sopuli_xyz.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_sopuli_xyz(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://sopuli.xyz/api/v3/user"
+ show_url = f"https://sopuli.xyz/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )
diff --git a/user_scanner/user_scan/social/yall_theatl_social.py b/user_scanner/user_scan/social/yall_theatl_social.py
new file mode 100644
index 0000000..d246579
--- /dev/null
+++ b/user_scanner/user_scan/social/yall_theatl_social.py
@@ -0,0 +1,63 @@
+import urllib.parse
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, generic_validate
+
+def validate_yall_theatl_social(user: str) -> Result:
+ encoded_user = urllib.parse.quote(user)
+ url = "https://yall.theatl.social/api/v3/user"
+ show_url = f"https://yall.theatl.social/u/{encoded_user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ def process(response) -> Result:
+ if response.status_code == 404:
+ try:
+ data = response.json()
+ err = str(data.get("error", "")).lower()
+ if "couldnt_find" in err or "not_found" in err:
+ return Result.available(url=show_url)
+ except Exception:
+ pass
+ return Result.error("Lemmy 404 response missing expected error payload")
+
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ person = data.get("person_view", {}).get("person", {})
+ if person and person.get("name") and str(person.get("name")).lower() == user.lower():
+ extra: dict[str, str] = {}
+ media: dict[str, str] = {}
+
+ if person.get("display_name"):
+ extra["display_name"] = str(person["display_name"])
+ if person.get("bio"):
+ extra["bio"] = str(person["bio"])
+ if person.get("published"):
+ extra["joined"] = str(person["published"])
+ if person.get("matrix_user_id"):
+ extra["matrix"] = str(person["matrix_user_id"])
+ if person.get("actor_id"):
+ extra["actor_id"] = str(person["actor_id"])
+
+ avatar = person.get("avatar")
+ if avatar and isinstance(avatar, str) and avatar.startswith("http"):
+ media["avatar"] = avatar
+
+ return Result.taken(url=show_url, extra=extra, media=media)
+ except Exception:
+ pass
+ return Result.error("Lemmy 200 response missing valid person payload")
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ params={"username": user},
+ show_url=show_url,
+ follow_redirects=True,
+ )