🕵️♂️ (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
from user_scanner.core.orchestrator import Result, make_request
def validate_wikipedia(user):
# Using formatversion=2 for a cleaner JSON response
api_url = "https://en.wikipedia.org/w/api.php"
show_url = f"https://en.wikipedia.org/wiki/User:{user}"
params = {
"action": "query",
"format": "json",
"list": "users",
"ususers": user,
"usprop": "editcount|registration|gender",
"formatversion": 2,
}
try:
response = make_request(api_url, params=params, follow_redirects=True, http2=True)
if response.status_code == 200:
data = response.json()
users = data.get("query", {}).get("users", [])
if not users:
return Result.error("Invalid API response format", url=show_url)
user_data = users[0]
# Wikipedia API returns a "missing" key if the user does not exist
if "missing" in user_data:
return Result.available(url=show_url)
extra = {}
if userid := user_data.get("userid"):
extra["userid"] = str(userid)
if editcount := user_data.get("editcount"):
extra["editcount"] = str(editcount)
if registration := user_data.get("registration"):
extra["registration"] = registration
if gender := user_data.get("gender"):
extra["gender"] = gender
return Result.taken(extra=extra, url=show_url)
else:
return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
except Exception as e:
return Result.error(e, url=show_url)