🕵️♂️ (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
feat: add Nexus Mods username module
Kristo Isbergc97b93acfc78
diff --git a/user_scanner/user_scan/gaming/nexusmods.py b/user_scanner/user_scan/gaming/nexusmods.pynew file mode 100644index 0000000..a1e36de--- /dev/null+++ b/user_scanner/user_scan/gaming/nexusmods.py@@ -0,0 +1,48 @@+import html+import re+from urllib.parse import quote++from user_scanner.core.orchestrator import generic_validate+from user_scanner.core.result import Result+++def validate_nexusmods(user: str) -> Result:+ url = f"https://www.nexusmods.com/profile/{quote(user, safe='')}"++ def process(response):+ if response.status_code == 404:+ return Result.available()++ if response.status_code != 200:+ return Result.error(f"Unexpected status code: {response.status_code}")++ heading = re.search(+ r'<h1[^>]*class="[^"]*text-heading-sm[^"]*"[^>]*>\s*([^<]+)\s*</h1>',+ response.text,+ )+ if not heading or html.unescape(heading.group(1)).strip().casefold() != user.casefold():+ return Result.error("Profile response did not match the requested username")++ extra = {}+ avatar = re.search(+ r'src="(https://avatars\.nexusmods\.com/[^"]+)"', response.text+ )+ if avatar:+ extra["avatar"] = html.unescape(avatar.group(1))++ for field, marker in (+ ("endorsements_given", "endorsements-given"),+ ("profile_views", "profile-views"),+ ("kudos", "kudos"),+ ("last_active", "last-active-date"),+ ("joined", "joined-date"),+ ):+ match = re.search(+ rf'data-e2eid="{marker}"[^>]*>\s*([^<]+)', response.text+ )+ if match:+ extra[field] = html.unescape(match.group(1)).strip()++ return Result.taken(extra=extra)++ return generic_validate(url, process, show_url=url, follow_redirects=True)