🕵️♂️ (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(codeberg): enable data extraction logic
Kaif13c5b9ccc6a3
diff --git a/user_scanner/user_scan/dev/codeberg.py b/user_scanner/user_scan/dev/codeberg.pyindex 56c37a2..8e56b5e 100644--- a/user_scanner/user_scan/dev/codeberg.py+++ b/user_scanner/user_scan/dev/codeberg.py@@ -1,8 +1,29 @@-from user_scanner.core.orchestrator import status_validate-+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_codeberg(user):- url = f"https://codeberg.org/{user}"+ url = f"https://codeberg.org/api/v1/users/{user}"show_url = f"https://codeberg.org/{user}"- return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)+ def process(response):+ if response.status_code == 200:+ try:+ data = response.json()+ if data and data.get('id'):+ extra = {}+ if data.get('id'): extra['id'] = data.get('id')+ if data.get('login'): extra['login'] = data.get('login')+ if data.get('full_name'): extra['full_name'] = data.get('full_name')+ if data.get('email'): extra['email'] = data.get('email')+ if data.get('created'): extra['created'] = data.get('created')+ if data.get('location'): extra['location'] = data.get('location')+ if data.get('website'): extra['website'] = data.get('website')+ return Result.taken(extra=extra)+ except Exception:+ pass+ elif response.status_code == 404:+ return Result.available()++ return Result.error("Unexpected response body, report it via GitHub issues.")++ headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0"}+ return generic_validate(url, process, show_url=show_url, headers=headers)