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.

Add StackOverflow username validator

Fort5039d2dd431b235
diff --git a/user_scanner/community/__init__.py b/user_scanner/community/__init__.py
index e69de29..3bb216b 100644
--- a/user_scanner/community/__init__.py
+++ b/user_scanner/community/__init__.py
@@ -0,0 +1 @@
+# community
diff --git a/user_scanner/community/stackoverflow.py b/user_scanner/community/stackoverflow.py
new file mode 100644
index 0000000..6e41711
--- /dev/null
+++ b/user_scanner/community/stackoverflow.py
@@ -0,0 +1,35 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+def validate_stackoverflow(user: str) -> Result:
+ url = f"https://stackoverflow.com/users/filter?search={user}"
+
+ def process(response):
+ if response.status_code == 200:
+ text = response.text
+
+ if "No users matched your search." in text:
+ return Result.available()
+
+ pattern = f'>{user}<'
+ if pattern in text:
+ return Result.taken()
+
+ return Result.available()
+
+ return Result.error("Unexpected status code from Stack Overflow")
+
+ return generic_validate(url, process)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_stackoverflow(user)
+
+ if result == Result.available():
+ print("Available!")
+ elif result == Result.taken():
+ print("Unavailable!")
+ else:
+ msg = result.get_reason()
+ print("Error occurred!" + (f" {msg}" if msg else ""))