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.

refactor: add extra data extraction logic for 3 donation sites

Kaif13532880152c
diff --git a/user_scanner/user_scan/donation/donatealerts.py b/user_scanner/user_scan/donation/donatealerts.py
index 0d5b70e..abf9936 100644
--- a/user_scanner/user_scan/donation/donatealerts.py
+++ b/user_scanner/user_scan/donation/donatealerts.py
@@ -1,7 +1,22 @@
-from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.orchestrator import generic_validate, Result
def validate_donation_alerts(user):
url = f"https://www.donationalerts.com/api/v1/user/{user}/donationpagesettings"
show_url = f"https://www.donationalerts.com/r/{user}"
- return status_validate(url, 202, 200, show_url=show_url)
+ def process(response):
+ if response.status_code == 200:
+ extra = {}
+ try:
+ data = response.json().get("data", {})
+ if name := data.get("name"): extra["name"] = name
+ if currency := data.get("preferred_currency"): extra["currency"] = currency
+ if avatar := data.get("avatar"): extra["avatar"] = avatar
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
+ elif response.status_code == 202 or (response.status_code == 200 and not response.json().get("success", True)):
+ return Result.available()
+ return Result.error(f"Unexpected status {response.status_code}")
+
+ return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/donation/donatello.py b/user_scanner/user_scan/donation/donatello.py
index 819255a..349f8c3 100644
--- a/user_scanner/user_scan/donation/donatello.py
+++ b/user_scanner/user_scan/donation/donatello.py
@@ -1,7 +1,21 @@
-from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.orchestrator import generic_validate, Result
+import re
def validate_donatello(user):
url = f"https://donatello.to/{user}"
show_url = f"https://donatello.to/{user}"
- return status_validate(url, 404, 200, show_url=show_url)
+ def process(response):
+ if response.status_code == 200:
+ extra = {}
+ author_match = re.search(r'<meta name="author" content="([^"]+)">', response.text)
+ if author_match:
+ name = author_match.group(1).strip()
+ if name.lower() != user.lower():
+ extra["name"] = name
+ return Result.taken(extra=extra)
+ elif response.status_code == 404:
+ return Result.available()
+ return Result.error(f"Unexpected status {response.status_code}")
+
+ return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/donation/liberapay.py b/user_scanner/user_scan/donation/liberapay.py
index 7db5c90..fae13e7 100644
--- a/user_scanner/user_scan/donation/liberapay.py
+++ b/user_scanner/user_scan/donation/liberapay.py
@@ -1,5 +1,5 @@
-from user_scanner.core.orchestrator import status_validate
-
+from user_scanner.core.orchestrator import generic_validate, Result
+import re
def validate_liberapay(user):
url = f"https://en.liberapay.com/{user}"
@@ -22,6 +22,17 @@ def validate_liberapay(user):
"upgrade-insecure-requests": "1",
}
- return status_validate(
- url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True
- )
+ def process(response):
+ if response.status_code == 200:
+ extra = {}
+ title_match = re.search(r'<title>([^<]+)</title>', response.text)
+ if title_match:
+ name = title_match.group(1).split("&#39;s profile")[0].split("'s profile")[0].strip()
+ if name.lower() != user.lower():
+ extra["name"] = name
+ return Result.taken(extra=extra)
+ elif response.status_code in (404, 410):
+ return Result.available()
+ return Result.error(f"Unexpected status {response.status_code}")
+
+ return generic_validate(url, process, show_url=show_url, headers=headers, follow_redirects=True)