🕵️♂️ (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: handle invalid GitHub username using Result class
kaifcodec0ad3fa1acca3
diff --git a/user_scanner/dev/github.py b/user_scanner/dev/github.pyindex a314307..3f483e4 100644--- a/user_scanner/dev/github.py+++ b/user_scanner/dev/github.py@@ -1,4 +1,4 @@-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_github(user):@@ -18,7 +18,24 @@ def validate_github(user):'priority': "u=1, i"}- return status_validate(url, 200, 422, headers=headers)+ GITHUB_INVALID_MSG = (+ "Username may only contain alphanumeric characters or single hyphens, "+ "and cannot begin or end with a hyphen."+ )++ def process(response):+ if response.status_code == 200:+ return Result.available()++ if response.status_code == 422:+ if GITHUB_INVALID_MSG in response.text:+ return Result.error("Cannot start/end with hyphen or use double hyphens")++ return Result.taken()++ return Result.error("Unexpected GitHub response report it via issues")++ return generic_validate(url, process, headers=headers)if __name__ == "__main__":