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.

feat: extract profile metadata in faproulette username scan

Bruno Leonardo Michels4d9007e29a4c
diff --git a/user_scanner/user_scan/adult/faproulette.py b/user_scanner/user_scan/adult/faproulette.py
index 044de05..5444931 100644
--- a/user_scanner/user_scan/adult/faproulette.py
+++ b/user_scanner/user_scan/adult/faproulette.py
@@ -1,4 +1,5 @@
import re
+import html
from user_scanner.core.orchestrator import generic_validate, Result
@@ -17,15 +18,15 @@ def validate_faproulette(user):
# 200 without it (age gate, generic landing) is not a hit.
canonical = _canonical_user(response.text)
if canonical and canonical.lower() == user.lower():
- return Result.taken(url=show_url)
+ return Result.taken(extra=_extract_profile(response.text), url=show_url)
return Result.error("Profile confirmation not found", url=show_url)
return generic_validate(url, process, show_url=show_url)
-def _canonical_user(html: str) -> str | None:
- link = re.search(r'<link\b[^>]*\brel="canonical"[^>]*>', html, re.IGNORECASE)
+def _canonical_user(html_text: str) -> str | None:
+ link = re.search(r'<link\b[^>]*\brel="canonical"[^>]*>', html_text, re.IGNORECASE)
if not link:
return None
@@ -35,3 +36,27 @@ def _canonical_user(html: str) -> str | None:
match = re.search(r'/@([^/?#]+)', href.group(1))
return match.group(1) if match else None
+
+
+def _extract_profile(html_text: str) -> dict:
+ extra = {}
+
+ # og:title is "<DisplayName>'s Profile - Fap Roulette"; the apostrophe may
+ # arrive raw or html-encoded depending on the rendering path.
+ name = re.search(
+ r'og:title"\s+content="(.+?)(?:&#0?39;|&apos;|\')s Profile',
+ html_text, re.IGNORECASE)
+ if name:
+ extra["name"] = html.unescape(name.group(1)).strip()
+
+ joined = re.search(
+ r'<span class="type">Joined</span>.{0,200}?(\d{4}-\d{2}-\d{2})',
+ html_text, re.IGNORECASE | re.DOTALL)
+ if joined:
+ extra["joined"] = joined.group(1)
+
+ roulettes = re.search(r'roulettes_total(?:&quot;|")\s*:\s*(\d+)', html_text, re.IGNORECASE)
+ if roulettes:
+ extra["roulettes"] = roulettes.group(1)
+
+ return extra