🕵️♂️ (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.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
import html
import re
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
def validate_spatial(user: str) -> Result:
"""Validate a 3D creator profile on Spatial (spatial.io)."""
url = f"https://www.spatial.io/@{user}"
show_url = f"https://www.spatial.io/@{user}"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
}
def process(response):
title_match = re.search(r"<title>(.*?)</title>", response.text, re.IGNORECASE)
raw_title = title_match.group(1).strip() if title_match else ""
title = html.unescape(raw_title)
# 1. Explicit verification of available / not-found state
if (
response.status_code == 404
or "profile not found" in title.lower()
or "page not found" in title.lower()
or "not found" in response.text.lower()
):
return Result.available(url=show_url)
# 2. Explicit verification of taken state + data extraction
if response.status_code == 200 and "spatial" in title.lower() and f"(@{user.lower()})" in title.lower():
extra = {"username": user}
media = {}
# Extract display name from "<Name> (@<user>) | Spatial"
name_match = re.search(r"^(.*?)\s+\(@", title)
if name_match:
extra["name"] = name_match.group(1).strip()
# Extract avatar from OpenGraph image (ReadyPlayerMe avatar PNG)
img_match = re.search(r'<meta property="og:image" content="(.*?)"', response.text, re.IGNORECASE)
if not img_match:
img_match = re.search(r'<meta content="(.*?)" property="og:image"', response.text, re.IGNORECASE)
if img_match:
img_url = img_match.group(1).strip()
if img_url and "og-image" not in img_url.lower() and "default" not in img_url.lower():
media["avatar"] = img_url
return Result.taken(extra=extra, media=media, url=show_url)
# 3. Graceful error for unexpected status codes (No bare else!)
return Result.error(f"Unexpected response status: {response.status_code}", url=show_url)
return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)