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.

fix(__main__.py, test_helpers.py): improve CLI output grammar and update tests

kaifcodec23c01ea999e9
diff --git a/tests/test_helpers.py b/tests/test_helpers.py
index c5abfa7..8056913 100644
--- a/tests/test_helpers.py
+++ b/tests/test_helpers.py
@@ -92,7 +92,7 @@ def test_bulk_emails_single_valid(tmp_path, run_main, capsys):
exit_code = run_main(["-ef", str(email_file), "-m", "github"])
out = capsys.readouterr().out
- assert "Loaded 1 emails" in out
+ assert "Loaded 1 email" in out
assert exit_code == 0
def test_bulk_emails_invalid(tmp_path, run_main):
@@ -155,7 +155,7 @@ def test_bulk_usernames_single_valid(tmp_path, run_main, capsys):
exit_code = run_main(["-uf", str(username_file), "-m", "github"])
out = capsys.readouterr().out
- assert "Loaded 1 usernames" in out
+ assert "Loaded 1 username" in out
assert exit_code == 0
def test_bulk_usernames_empty_file(tmp_path, run_main):
diff --git a/user_scanner/__main__.py b/user_scanner/__main__.py
index 4a7a8ad..310b0ea 100644
--- a/user_scanner/__main__.py
+++ b/user_scanner/__main__.py
@@ -196,7 +196,7 @@ def main():
print(f"{R}[✘] Error: No valid emails found in {args.email_file}{X}")
sys.exit(1)
- print(f"{C}[+] Loaded {len(valid_emails)} emails from {args.email_file}{X}")
+ print(f"{C}[+] Loaded {len(valid_emails)} {'email' if len(valid_emails) == 1 else 'emails'} from {args.email_file}{X}")
is_email = True
targets = valid_emails
except FileNotFoundError:
@@ -213,7 +213,7 @@ def main():
if not usernames:
print(f"{R}[✘] Error: No valid usernames found in {args.username_file}{X}")
sys.exit(1)
- print(f"{C}[+] Loaded {len(usernames)} usernames from {args.username_file}{X}")
+ print(f"{C}[+] Loaded {len(usernames)} {'username' if len(usernames) == 1 else 'usernames'} from {args.username_file}{X}")
is_email = False
targets = usernames
except FileNotFoundError: