🕵️♂️ (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
Fix Monkeytype username validation error handling
dxv3f19e116ff5d0
diff --git a/user_scanner/gaming/monkeytype.py b/user_scanner/gaming/monkeytype.pyindex ece5446..34ea9e1 100644--- a/user_scanner/gaming/monkeytype.py+++ b/user_scanner/gaming/monkeytype.py@@ -1,9 +1,11 @@from user_scanner.core.orchestrator import generic_validatefrom user_scanner.core.result import Result+from urllib.parse import quote-def validate_monkeytype(user: str) -> int:- url = f"https://api.monkeytype.com/users/checkName/{user}"+def validate_monkeytype(user: str) -> int:+ safe_user = quote(user, safe="")+ url = f"https://api.monkeytype.com/users/checkName/{safe_user}"headers = {"User-Agent": (@@ -28,6 +30,16 @@ def validate_monkeytype(user: str) -> int:return Result.available()elif available is False:return Result.taken()++ # Surface Monkeytype validation errors (e.g. special characters)+ try:+ data = response.json()+ errors = data.get("validationErrors")+ if errors:+ return Result.error("; ".join(errors))+ except Exception:+ pass+return Result.error("Invalid status code")return generic_validate(url, process, headers=headers)@@ -42,4 +54,4 @@ if __name__ == "__main__":elif result == 0:print("Unavailable!")else:- print("Error occurred!")+ print("Error occured!")