🕵️♂️ (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
import html
import re
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
def validate_audiomack(user: str) -> Result:
"""Validate an artist/user on Audiomack (audiomack.com)."""
url = f"https://audiomack.com/{user}"
show_url = f"https://audiomack.com/{user}"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
}
def process(response):
response_text_lower = response.text.lower()
# 1. Explicit verification of available / not-found state (HTTP 404 or generic platform fallback title / og:type website)
title_match = re.search(r"<title>(.*?)</title>", response.text, re.IGNORECASE)
raw_title = title_match.group(1).strip() if title_match else ""
page_title = html.unescape(raw_title)
type_match = re.search(r'<meta property="og:type" content="(.*?)"', response.text, re.IGNORECASE)
og_type = type_match.group(1).strip().lower() if type_match else ""
if response.status_code == 404 or (
response.status_code == 200
and og_type == "website"
and "music platform empowering" in page_title.lower()
):
return Result.available(url=show_url)
# 2. Explicit verification of taken state + data extraction
if response.status_code == 200 and "audiomack" in response_text_lower:
if og_type == "profile" or "listen free on audiomack" in page_title.lower():
extra = {"username": user}
media = {}
name_match = re.search(r'<meta property="profile:first_name" content="(.*?)"', response.text, re.IGNORECASE)
if name_match:
extra["name"] = name_match.group(1).strip()
elif " - listen free on audiomack" in page_title.lower():
extra["name"] = re.sub(r" - listen free on audiomack.*", "", page_title, flags=re.IGNORECASE).strip()
og_img_match = re.search(r'<meta property="og:image" content="(.*?)"', response.text, re.IGNORECASE)
if og_img_match:
img_url = og_img_match.group(1).strip()
if img_url and "audiomack-logo" not in img_url.lower():
media["avatar"] = img_url
return Result.taken(extra=extra, media=media, url=show_url)
return Result.available(url=show_url)
# 3. Graceful error for unexpected status codes (No bare else!)
return Result.error(f"Unexpected response status: {response.status_code}", url=show_url)
return generic_validate(url, process, headers=headers, show_url=show_url, follow_redirects=True)