🕵️♂️ (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
refactor: standardize error handling across 19 modules
Kaif22b02d96e701
diff --git a/user_scanner/user_scan/community/discourse_meta.py b/user_scanner/user_scan/community/discourse_meta.pyindex 8b6870d..4b0faf9 100644--- a/user_scanner/user_scan/community/discourse_meta.py+++ b/user_scanner/user_scan/community/discourse_meta.py@@ -32,7 +32,7 @@ def validate_discourse_meta(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/community/ghost_forum.py b/user_scanner/user_scan/community/ghost_forum.pyindex 942aad5..8b8a14b 100644--- a/user_scanner/user_scan/community/ghost_forum.py+++ b/user_scanner/user_scan/community/ghost_forum.py@@ -32,7 +32,7 @@ def validate_ghost_forum(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/community/instructables.py b/user_scanner/user_scan/community/instructables.pyindex c4b3d3d..dbd3fcb 100644--- a/user_scanner/user_scan/community/instructables.py+++ b/user_scanner/user_scan/community/instructables.py@@ -22,4 +22,4 @@ def validate_instructables(user):extra["description"] = desc_match.group(1).strip()return Result.taken(extra=extra, url=url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/community/mozilladiscourse.py b/user_scanner/user_scan/community/mozilladiscourse.pyindex 5c6fa56..f74b1a9 100644--- a/user_scanner/user_scan/community/mozilladiscourse.py+++ b/user_scanner/user_scan/community/mozilladiscourse.py@@ -30,4 +30,4 @@ def validate_mozilladiscourse(user):extra["profile_views"] = u_data["profile_view_count"]return Result.taken(extra=extra, url=show_url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/community/operaforums.py b/user_scanner/user_scan/community/operaforums.pyindex 14a4217..7d2f362 100644--- a/user_scanner/user_scan/community/operaforums.py+++ b/user_scanner/user_scan/community/operaforums.py@@ -26,4 +26,4 @@ def validate_operaforums(user):extra["location"] = data["location"]return Result.taken(extra=extra, url=show_url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/community/ubuntu_mate.py b/user_scanner/user_scan/community/ubuntu_mate.pyindex aa03774..bf28005 100644--- a/user_scanner/user_scan/community/ubuntu_mate.py+++ b/user_scanner/user_scan/community/ubuntu_mate.py@@ -32,7 +32,7 @@ def validate_ubuntu_mate(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/creator/linktree.py b/user_scanner/user_scan/creator/linktree.pyindex 7f71b2d..f6f291b 100644--- a/user_scanner/user_scan/creator/linktree.py+++ b/user_scanner/user_scan/creator/linktree.py@@ -92,6 +92,6 @@ def validate_linktree(user):elif response.status_code == 404:return Result.available(url=show_url)else:- return Result.error(f"Unexpected status: {response.status_code}", url=show_url)+ return Result.error(f"Unexpected response status: {response.status_code}", url=show_url)except Exception as e:return Result.error(e, url=show_url)diff --git a/user_scanner/user_scan/dev/f_droid.py b/user_scanner/user_scan/dev/f_droid.pyindex feec789..9fc01c0 100644--- a/user_scanner/user_scan/dev/f_droid.py+++ b/user_scanner/user_scan/dev/f_droid.py@@ -32,7 +32,7 @@ def validate_f_droid(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/dev/hashicorp_discuss.py b/user_scanner/user_scan/dev/hashicorp_discuss.pyindex 7dd523f..db9c032 100644--- a/user_scanner/user_scan/dev/hashicorp_discuss.py+++ b/user_scanner/user_scan/dev/hashicorp_discuss.py@@ -32,7 +32,7 @@ def validate_hashicorp_discuss(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/dev/kotlin_discuss.py b/user_scanner/user_scan/dev/kotlin_discuss.pyindex c6546e7..1e218da 100644--- a/user_scanner/user_scan/dev/kotlin_discuss.py+++ b/user_scanner/user_scan/dev/kotlin_discuss.py@@ -32,7 +32,7 @@ def validate_kotlin_discuss(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/dev/python_discuss.py b/user_scanner/user_scan/dev/python_discuss.pyindex 833d31a..a1da3fe 100644--- a/user_scanner/user_scan/dev/python_discuss.py+++ b/user_scanner/user_scan/dev/python_discuss.py@@ -32,7 +32,7 @@ def validate_python_discuss(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/dev/rust_users.py b/user_scanner/user_scan/dev/rust_users.pyindex 8ae4b6c..4e4f0ed 100644--- a/user_scanner/user_scan/dev/rust_users.py+++ b/user_scanner/user_scan/dev/rust_users.py@@ -32,7 +32,7 @@ def validate_rust_users(user):return Result.taken(extra=extra)return Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/dev/wordpress.py b/user_scanner/user_scan/dev/wordpress.pyindex cf62b23..daf59d5 100644--- a/user_scanner/user_scan/dev/wordpress.py+++ b/user_scanner/user_scan/dev/wordpress.py@@ -21,4 +21,4 @@ def validate_wordpress(user):extra["name"] = name_match.group(1).strip()return Result.taken(extra=extra, url=url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/social/blogger.py b/user_scanner/user_scan/social/blogger.pyindex ee05602..288fcc4 100644--- a/user_scanner/user_scan/social/blogger.py+++ b/user_scanner/user_scan/social/blogger.py@@ -19,4 +19,4 @@ def validate_blogger(user):extra["title"] = title_match.group(1).strip()return Result.taken(extra=extra, url=url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/social/deviantart.py b/user_scanner/user_scan/social/deviantart.pyindex cb4b0ce..c65a6ff 100644--- a/user_scanner/user_scan/social/deviantart.py+++ b/user_scanner/user_scan/social/deviantart.py@@ -22,4 +22,4 @@ def validate_deviantart(user):extra["description"] = desc_match.group(1).strip()return Result.taken(extra=extra, url=url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/social/foursquare.py b/user_scanner/user_scan/social/foursquare.pyindex ab68ff5..8ac833a 100644--- a/user_scanner/user_scan/social/foursquare.py+++ b/user_scanner/user_scan/social/foursquare.py@@ -22,4 +22,4 @@ def validate_foursquare(user):extra["description"] = desc_match.group(1).strip()return Result.taken(extra=extra, url=url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/social/goodreads.py b/user_scanner/user_scan/social/goodreads.pyindex b1fa76f..4f324d2 100644--- a/user_scanner/user_scan/social/goodreads.py+++ b/user_scanner/user_scan/social/goodreads.py@@ -23,4 +23,4 @@ def validate_goodreads(user):extra["name"] = name_match.group(1).replace(' (', '').strip()return Result.taken(extra=extra, url=final_url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")diff --git a/user_scanner/user_scan/social/habr.py b/user_scanner/user_scan/social/habr.pyindex e6bfe43..c6ecc9e 100644--- a/user_scanner/user_scan/social/habr.py+++ b/user_scanner/user_scan/social/habr.py@@ -33,7 +33,7 @@ def validate_habr(user):except Exception:passreturn Result.available()- raise Exception(f"Unexpected status code {response.status_code}")+ return Result.error(f"Unexpected response status: {response.status_code}")headers = {"User-Agent": "Mozilla/5.0"}return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/social/weebly.py b/user_scanner/user_scan/social/weebly.pyindex 14e1b4d..0cf856f 100644--- a/user_scanner/user_scan/social/weebly.py+++ b/user_scanner/user_scan/social/weebly.py@@ -22,4 +22,4 @@ def validate_weebly(user):extra["description"] = desc_match.group(1).strip()return Result.taken(extra=extra, url=url)- raise Exception(f"Unexpected status code {resp.status_code}")+ return Result.error(f"Unexpected response status: {resp.status_code}")