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: enable deep data extractions for user_scan/adult/ modules

Kaif0dc80e657187
diff --git a/user_scanner/user_scan/adult/adultforum.py b/abandoned/user_scan/adultforum.py
similarity index 100%
rename from user_scanner/user_scan/adult/adultforum.py
rename to abandoned/user_scan/adultforum.py
diff --git a/user_scanner/user_scan/adult/admireme_vip.py b/user_scanner/user_scan/adult/admireme_vip.py
index d65ae56..8dc629c 100644
--- a/user_scanner/user_scan/adult/admireme_vip.py
+++ b/user_scanner/user_scan/adult/admireme_vip.py
@@ -1,3 +1,5 @@
+import re
+import html
from user_scanner.core.helpers import get_random_user_agent
from user_scanner.core.orchestrator import Result, generic_validate
@@ -12,12 +14,106 @@ def validate_admireme_vip(user):
}
def process(response):
- if "creator-stat subscriber" in response.text:
- return Result.taken()
+ if "creator-stat subscriber" in response.text or response.status_code == 200:
+ if "creator-stat subscriber" in response.text or "admireme.vip" in response.text:
+ extra = {}
+
+ # Extract Display Name/Title
+ title_match = re.search(
+ r'<meta\s+property="og:title"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if title_match:
+ extra["fullname"] = title_match.group(
+ 1).replace("| AdmireMe.VIP", "").strip()
+ else:
+ t_tag = re.search(r"<title>(.*?)</title>",
+ response.text, re.IGNORECASE)
+ if t_tag:
+ extra["fullname"] = t_tag.group(1).replace(
+ "| AdmireMe.VIP", "").strip()
+
+ if "fullname" not in extra or not extra["fullname"]:
+ name_match = re.search(
+ r'class="name">\s*(.*?)\s*</h4>', response.text, re.IGNORECASE)
+ if name_match:
+ extra["fullname"] = html.unescape(
+ name_match.group(1)).strip()
+
+ # Extract Username/Tag
+ tag_match = re.search(
+ r'class="tag">\s*&#64;(.*?)\s*</h4>', response.text, re.IGNORECASE)
+ if tag_match:
+ extra["username"] = html.unescape(
+ tag_match.group(1)).strip()
+
+ # Extract Bio
+ desc_match = re.search(
+ r'<meta\s+property="og:description"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if desc_match:
+ extra["bio"] = desc_match.group(1).strip()
+ else:
+ bio_match = re.search(
+ r'<div class="bio">.*?<div class="inner">\s*(.*?)\s*</div>', response.text, re.DOTALL | re.IGNORECASE)
+ if bio_match:
+ cleaned_bio = re.sub(
+ r'<[^>]+>', ' ', bio_match.group(1))
+ cleaned_bio = re.sub(r'\s+', ' ', cleaned_bio)
+ extra["bio"] = html.unescape(cleaned_bio).strip()
+
+ # Extract Avatar / Profile Image
+ image_match = re.search(
+ r'<meta\s+property="og:image"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if image_match:
+ extra["image"] = image_match.group(1).strip()
+ else:
+ bg_video_match = re.search(
+ r'class="profile_video"[^>]*style="[^"]*background-image:\s*url\(\s*\'?([^\')]+)\'?\s*\)', response.text, re.IGNORECASE)
+ if bg_video_match:
+ extra["image"] = bg_video_match.group(1).strip()
+ else:
+ bg_pic_match = re.search(
+ r'class="profile-pic[^"]*"[^>]*style="[^"]*background-image:\s*url\(\s*\'?([^\')]+)\'?\s*\)', response.text, re.IGNORECASE)
+ if bg_pic_match:
+ extra["image"] = bg_pic_match.group(1).strip()
+ else:
+ img_tag_match = re.search(
+ r'class="profile-pic[^"]*".*?<img[^>]+src="([^"]+)"', response.text, re.DOTALL | re.IGNORECASE)
+ if img_tag_match:
+ extra["image"] = img_tag_match.group(1).strip()
+
+ # Extract Banner Image
+ banner_match = re.search(
+ r'id="banner".*?<img[^>]+src="([^"]+)"', response.text, re.DOTALL | re.IGNORECASE)
+ if banner_match:
+ extra["banner"] = banner_match.group(1).strip()
+
+ # Extract Subscription Price
+ price_match = re.search(
+ r'id="id-subscription-price-orig"\s+value="([^"]+)"', response.text, re.IGNORECASE)
+ if price_match:
+ extra["price"] = html.unescape(
+ price_match.group(1)).strip()
+
+ # Extract Post Counts
+ teaser_posts = re.search(
+ r'class="[^"]*teaser[^"]*".*?<span class="number">(\d+)</span>', response.text, re.DOTALL | re.IGNORECASE)
+ sub_posts = re.search(
+ r'class="[^"]*subscriber[^"]*".*?<span class="number">(\d+)</span>', response.text, re.DOTALL | re.IGNORECASE)
+ t_count = 0
+ s_count = 0
+ if teaser_posts:
+ extra["teaser_posts"] = teaser_posts.group(1)
+ t_count = int(teaser_posts.group(1))
+ if sub_posts:
+ extra["subscriber_posts"] = sub_posts.group(1)
+ s_count = int(sub_posts.group(1))
+ if t_count or s_count:
+ extra["posts"] = str(t_count + s_count)
+
+ return Result.taken(extra=extra, url=show_url)
if response.status_code == 404 or "<title>Page Not Found |" in response.text:
- return Result.available()
+ return Result.available(url=show_url)
- return Result.error(f"Unexpected status: {response.status_code}")
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/adult/adultism.py b/user_scanner/user_scan/adult/adultism.py
index 9e63a9c..58f751f 100644
--- a/user_scanner/user_scan/adult/adultism.py
+++ b/user_scanner/user_scan/adult/adultism.py
@@ -1,8 +1,145 @@
-from user_scanner.core.orchestrator import status_validate
+import re
+from user_scanner.core.orchestrator import generic_validate, Result, make_request
def validate_adultism(user):
url = f"https://www.adultism.com/profile/{user}"
show_url = f"https://www.adultism.com/profile/{user}"
- return status_validate(url, 404, 200, show_url=show_url)
+ def process(response):
+ if response.status_code == 200:
+ is_taken = (
+ re.search(r'itemprop="name">\s*' + re.escape(user) + r'\s*</h1>', response.text, re.IGNORECASE) or
+ re.search(r'<title>\s*' + re.escape(user) + r'\s*-\s*Adultism</title>', response.text, re.IGNORECASE) or
+ re.search(r'title="' + re.escape(user) + r'"', response.text, re.IGNORECASE) or
+ re.search(r'alt="' + re.escape(user) + r'"',
+ response.text, re.IGNORECASE)
+ )
+ if is_taken:
+ extra = {}
+
+ # Extract Avatar
+ avatar_match = re.search(r'<img[^>]+src="([^"]+)"[^>]*class="[^"]*profile-image', response.text, re.IGNORECASE) or \
+ re.search(
+ r'<img[^>]+class="[^"]*profile-image[^"]*"[^>]*src="([^"]+)"', response.text, re.IGNORECASE)
+ if avatar_match and "defaults/member" not in avatar_match.group(1):
+ extra["image"] = avatar_match.group(1)
+
+ # Extract Channel ID
+ channel_match = re.search(
+ r'data-channel-id="(\d+)"', response.text, re.IGNORECASE)
+ if channel_match:
+ extra["channel_id"] = channel_match.group(1)
+
+ # Extract Birth date
+ birthdate_match = re.search(
+ r'<meta[^>]+itemprop="birthDate"[^>]+content="([^"]+)"', response.text, re.IGNORECASE)
+ if birthdate_match:
+ extra["birthdate"] = birthdate_match.group(1)
+
+ # Extract Gender/Sex
+ sex_match = re.search(
+ r'Sex:.*?<span[^>]*>\s*(.*?)\s*</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if sex_match:
+ cleaned_sex = re.sub(
+ r"\s+", " ", sex_match.group(1)).replace("&nbsp;", " ").strip()
+ extra["gender"] = cleaned_sex
+ else:
+ gender_meta = re.search(
+ r'<meta[^>]+itemprop="gender"[^>]+content="([^"]+)"', response.text, re.IGNORECASE)
+ if gender_meta and gender_meta.group(1).strip():
+ extra["gender"] = gender_meta.group(1).strip()
+
+ # Extract Age
+ age_match = re.search(
+ r'Age:.*?<span[^>]*>\s*(.*?)\s*</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if age_match:
+ extra["age"] = re.sub(
+ r"\s+", " ", age_match.group(1)).strip()
+
+ # Extract Location
+ loc_match = re.search(
+ r'Location:.*?<span[^>]*>\s*(.*?)\s*</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if loc_match:
+ extra["location"] = re.sub(
+ r"\s+", " ", loc_match.group(1)).strip()
+ else:
+ loc_meta = re.search(
+ r'<meta[^>]+itemprop="homeLocation"[^>]+content="([^"]+)"', response.text, re.IGNORECASE)
+ if loc_meta:
+ extra["location"] = loc_meta.group(1).strip()
+
+ # Extract Last login
+ login_match = re.search(
+ r'Last login:.*?<span[^>]*>(.*?)</span[^>]*>', response.text, re.DOTALL | re.IGNORECASE)
+ if login_match:
+ val = login_match.group(1)
+ val = re.sub(r'<[^>]+>', '', val)
+ extra["last_login"] = re.sub(r"\s+", " ", val).strip()
+
+ # Extract Registration date
+ joined_match = re.search(
+ r'Member since:.*?<span[^>]*>\s*(.*?)\s*</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if joined_match:
+ extra["joined"] = re.sub(
+ r"\s+", " ", joined_match.group(1)).strip()
+
+ # Extract Subscriber count (checking data-canonical first, then quantity)
+ sub_match = re.search(
+ r'class="[^"]*subscriber-count[^"]*"[^>]*data-canonical="(\d+)"', response.text, re.IGNORECASE)
+ if sub_match:
+ extra["subscribers"] = sub_match.group(1)
+ else:
+ quantity_match = re.search(
+ r'subscriber-count.*?<span[^>]*class="[^"]*(?:quantity|value)[^"]*"[^>]*>([^<]+)</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if quantity_match:
+ extra["subscribers"] = quantity_match.group(1).strip()
+ else:
+ sub_span = re.search(
+ r'subscriber-count.*?<span[^>]*>([^<]+)</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if sub_span:
+ extra["subscribers"] = sub_span.group(1).strip()
+
+ # Extract Badges (Verified/Premium)
+ if "pc-verified" in response.text:
+ extra["verified"] = "True"
+ if "pc-premium" in response.text:
+ extra["premium"] = "True"
+
+ # Extract Description/Interests
+ interests_match = re.search(
+ r'<div[^>]+itemprop="description"[^>]*>\s*(.*?)\s*</div>', response.text, re.DOTALL | re.IGNORECASE)
+ if interests_match:
+ cleaned_interests = re.sub(
+ r"\s+", " ", interests_match.group(1)).strip()
+ extra["interests"] = cleaned_interests
+
+ # Extract Comments
+ comments_match = re.search(
+ r'<div class="comments">\s*<div[^>]*>Comments:</div>\s*(.*?)\s*</div>', response.text, re.DOTALL | re.IGNORECASE)
+ if comments_match:
+ cleaned_comments = re.sub(
+ r"\s+", " ", comments_match.group(1)).strip()
+ extra["comments"] = cleaned_comments
+
+ # Step 2: Fetch the friends page sequentially to extract exact friends count
+ try:
+ friends_url = f"https://www.adultism.com/profile/{user}/friends"
+ friends_resp = make_request(friends_url, timeout=5.0)
+ if friends_resp.status_code == 200:
+ friends_count_match = re.search(
+ r'<li class="page item-count">(\d+)\s+items</li>', friends_resp.text, re.IGNORECASE)
+ if friends_count_match:
+ extra["friends_count"] = friends_count_match.group(
+ 1)
+ except Exception:
+ pass # Keep going if friends page request fails
+
+ return Result.taken(extra=extra, url=show_url)
+
+ if response.status_code == 404 or "Page not found" in response.text:
+ return Result.available(url=show_url)
+
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/adult/babepedia.py b/user_scanner/user_scan/adult/babepedia.py
index ae2c970..8923552 100644
--- a/user_scanner/user_scan/adult/babepedia.py
+++ b/user_scanner/user_scan/adult/babepedia.py
@@ -1,16 +1,46 @@
+import re
from user_scanner.core.orchestrator import generic_validate, Result
+
def validate_babepedia(user):
url = f"https://www.babepedia.com/user/{user}"
show_url = f"https://www.babepedia.com/user/{user}"
def process(response):
if response.status_code == 200 and "'s Profile</title>" in response.text:
- return Result.taken()
-
+ extra = {}
+
+ # Extract standard account info fields from the Profile Page table
+ status_match = re.search(
+ r"Account status:.*?<span[^>]*>(.*?)</span>", response.text, re.DOTALL | re.IGNORECASE)
+ if status_match:
+ extra["status"] = status_match.group(1).strip()
+
+ signup_match = re.search(
+ r"Signed up on:.*?<td>(.*?)</td>", response.text, re.DOTALL | re.IGNORECASE)
+ if signup_match:
+ extra["signup_date"] = signup_match.group(1).strip()
+
+ seen_match = re.search(
+ r"Last seen on:.*?<td>(.*?)</td>", response.text, re.DOTALL | re.IGNORECASE)
+ if seen_match:
+ extra["last_seen"] = seen_match.group(1).strip()
+
+ logins_match = re.search(
+ r"Logins:.*?<td>(.*?)</td>", response.text, re.DOTALL | re.IGNORECASE)
+ if logins_match:
+ extra["logins"] = logins_match.group(1).strip()
+
+ views_match = re.search(
+ r"Views of this page:.*?<td>(.*?)</td>", response.text, re.DOTALL | re.IGNORECASE)
+ if views_match:
+ extra["views"] = views_match.group(1).strip()
+
+ return Result.taken(extra=extra, url=show_url)
+
if response.status_code == 404 or "Profile not found" in response.text:
- return Result.available()
+ return Result.available(url=show_url)
- return Result.error("Unexpected response body, report it via GitHub issues")
+ return Result.error("Unexpected response body, report it via GitHub issues", url=show_url)
return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/adult/bdsmlr.py b/user_scanner/user_scan/adult/bdsmlr.py
index 770bfc9..831f22f 100644
--- a/user_scanner/user_scan/adult/bdsmlr.py
+++ b/user_scanner/user_scan/adult/bdsmlr.py
@@ -1,3 +1,4 @@
+import re
from user_scanner.core.orchestrator import generic_validate, Result
@@ -8,11 +9,43 @@ def validate_bdsmlr(user):
def process(response):
if response.status_code == 200 and "login" in response.text:
- return Result.taken()
+ extra = {}
- if "This blog doesn't exist." in response.text:
- return Result.available()
+ # Extract blog title
+ title_match = re.search(
+ r"<title>(.*?)</title>", response.text, re.IGNORECASE)
+ if title_match:
+ title_val = title_match.group(1).strip()
+ if title_val.lower() != "no title":
+ extra["fullname"] = title_val
+ else:
+ extra["fullname"] = user.capitalize()
- return Result.error("Unexpected response body, report it via GitHub issues.")
+ # Extract avatar image (if not default)
+ image_match = re.search(
+ r'<meta\s+property="og:image"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if image_match and "default_avatar" not in image_match.group(1):
+ extra["image"] = image_match.group(1).strip()
+
+ # Extract description
+ desc_match = re.search(
+ r'<meta\s+property="og:description"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if desc_match:
+ desc_val = desc_match.group(1).strip()
+ if desc_val.lower() != "no description":
+ extra["bio"] = desc_val
+
+ # Extract blog ID
+ blog_id_match = re.search(
+ r'/followersblogs/(\d+)', response.text, re.IGNORECASE)
+ if blog_id_match:
+ extra["blog_id"] = blog_id_match.group(1)
+
+ return Result.taken(extra=extra, url=show_url)
+
+ if "This blog doesn't exist." in response.text or response.status_code == 404:
+ return Result.available(url=show_url)
+
+ return Result.error(f"Unexpected response code/body: {response.status_code}", url=show_url)
return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/adult/bdsmsingles.py b/user_scanner/user_scan/adult/bdsmsingles.py
index cc842f1..8779259 100644
--- a/user_scanner/user_scan/adult/bdsmsingles.py
+++ b/user_scanner/user_scan/adult/bdsmsingles.py
@@ -1,3 +1,4 @@
+import re
from user_scanner.core.orchestrator import generic_validate, Result
@@ -7,11 +8,62 @@ def validate_bdsmsingles(user):
def process(response):
if response.status_code == 200 and "<title>Profile" in response.text:
- return Result.taken()
+ extra = {}
+
+ # Headline
+ headline_match = re.search(r"<h1>(.*?)</h1>", response.text)
+ if headline_match:
+ extra["headline"] = headline_match.group(1).strip()
+
+ # Info / Orientation
+ info_match = re.search(
+ r"</h2>\s*<p>\s*(.*?)\s*</p>", response.text, re.DOTALL)
+ if info_match:
+ # Clean up multiple whitespaces
+ cleaned_info = re.sub(r"\s+", " ", info_match.group(1)).strip()
+ # strip out html tags like <b>
+ cleaned_info = re.sub(r"<[^>]+>", "", cleaned_info)
+ extra["orientation"] = cleaned_info
+
+ # Avatar (if not default nophoto svg)
+ avatar_match = re.search(
+ r'src="(https://media.bdsmsingles.com/images/user_photo/[^"]+)"', response.text)
+ if avatar_match and "nophoto" not in avatar_match.group(1):
+ extra["image"] = avatar_match.group(1)
+
+ # Table fields extraction
+ def extract_table_field(field_name):
+ # Search for field label followed by its value div
+ pattern = rf"{field_name}</div>\s*<div style=\"[^\"]*width:\s*60%;[^\"]*\">\s*(.*?)\s*</div>"
+ match = re.search(pattern, response.text,
+ re.DOTALL | re.IGNORECASE)
+ return match.group(1).strip() if match else None
+
+ first_name = extract_table_field("First name")
+ if first_name:
+ extra["fullname"] = first_name
+
+ sign = extract_table_field("Sign")
+ if sign:
+ extra["sign"] = sign
+
+ body = extract_table_field("My Body Type Is")
+ if body:
+ extra["body_type"] = body
+
+ height = extract_table_field("My Height Is")
+ if height:
+ extra["height"] = height
+
+ ethnicity = extract_table_field("My Ethnicity Is")
+ if ethnicity:
+ extra["ethnicity"] = ethnicity
+
+ return Result.taken(extra=extra, url=show_url)
if response.status_code == 302 or "BDSM Singles" in response.text:
- return Result.available()
+ return Result.available(url=show_url)
- return Result.error("Unexpected response body, report it via GitHub issues.")
+ return Result.error("Unexpected response body, report it via GitHub issues.", url=show_url)
return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/adult/bentbox.py b/user_scanner/user_scan/adult/bentbox.py
index 2eb639d..3b62f65 100644
--- a/user_scanner/user_scan/adult/bentbox.py
+++ b/user_scanner/user_scan/adult/bentbox.py
@@ -1,3 +1,4 @@
+import re
from user_scanner.core.orchestrator import generic_validate, Result
@@ -6,12 +7,94 @@ def validate_bentbox(user):
show_url = f"https://bentbox.co/{user}"
def process(response):
- if response.status_code == 200 and "user_bar" in response.text:
- return Result.taken()
+ if response.status_code == 200:
+ if "user_bar" in response.text or "bentbox.co" in response.text:
+ if "user is currently not available" in response.text:
+ return Result.available(url=show_url)
- if "user is currently not available" in response.text:
- return Result.available()
+ extra = {}
- return Result.error("Unexpected response body, report it via GitHub issues.")
+ # Extract profile data from OpenGraph or Title tags
+ title_match = re.search(
+ r'<meta\s+property="og:title"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if title_match:
+ fullname = title_match.group(1).replace(
+ "- BentBox Profile", "").replace("- BentBox", "").replace("on BentBox", "").strip()
+ extra["fullname"] = re.sub(
+ r'\(@[a-zA-Z0-9_-]+\)', '', fullname).strip()
+ else:
+ t_tag = re.search(r"<title>(.*?)</title>",
+ response.text, re.IGNORECASE)
+ if t_tag:
+ fullname = t_tag.group(1).replace(
+ "- BentBox Profile", "").replace("- BentBox", "").replace("on BentBox", "").strip()
+ extra["fullname"] = re.sub(
+ r'\(@[a-zA-Z0-9_-]+\)', '', fullname).strip()
+
+ # Extract Alternate Name / Username
+ username_match = re.search(r'"alternateName":\s*"([^"]+)"', response.text, re.IGNORECASE) or \
+ re.search(
+ r'<meta\s+property="profile:username"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if username_match:
+ extra["username"] = username_match.group(1).strip()
+
+ # Extract Bio
+ desc_match = re.search(
+ r'<meta\s+property="og:description"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if desc_match:
+ extra["bio"] = desc_match.group(1).strip()
+
+ # Extract Avatar
+ image_match = re.search(
+ r'<meta\s+property="og:image"\s+content="([^"]+)"', response.text, re.IGNORECASE)
+ if image_match:
+ extra["image"] = image_match.group(1).strip()
+
+ # Extract Identifier / User ID
+ id_match = re.search(
+ r'"identifier":\s*"([^"]+)"', response.text, re.IGNORECASE)
+ if id_match:
+ extra["profile_id"] = id_match.group(1).strip()
+
+ # Extract Followers
+ followers_match = re.search(
+ r'(\d+)\s+Followers', response.text, re.IGNORECASE)
+ if not followers_match:
+ follow_action = re.search(
+ r'FollowAction".*?"userInteractionCount":\s*"(\d+)"', response.text, re.DOTALL | re.IGNORECASE)
+ if follow_action:
+ extra["followers"] = follow_action.group(1)
+ else:
+ extra["followers"] = followers_match.group(1)
+
+ # Extract Boxes (Posts)
+ boxes_match = re.search(
+ r'<span class="stat-value">(\d+)</span>\s*<span class="stat-label">Boxes</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if not boxes_match:
+ write_action = re.search(
+ r'WriteAction".*?"userInteractionCount":\s*"(\d+)"', response.text, re.DOTALL | re.IGNORECASE)
+ if write_action:
+ extra["boxes"] = write_action.group(1)
+ else:
+ extra["boxes"] = boxes_match.group(1)
+
+ # Extract Videos
+ videos_match = re.search(
+ r'<span class="stat-value">(\d+)</span>\s*<span class="stat-label">Video[s]?</span>', response.text, re.DOTALL | re.IGNORECASE)
+ if videos_match:
+ extra["videos"] = videos_match.group(1)
+
+ return Result.taken(extra=extra, url=show_url)
+
+ if response.status_code in (403, 429):
+ return Result.error(
+ f"Rate limit / Cloudflare protection block (HTTP {response.status_code}). Run with residential proxy or active session cookies.",
+ url=show_url
+ )
+
+ if "user is currently not available" in response.text or response.status_code == 404:
+ return Result.available(url=show_url)
+
+ return Result.error(f"Unexpected response code/body: {response.status_code}", url=show_url)
return generic_validate(url, process, show_url=show_url)
diff --git a/user_scanner/user_scan/adult/zmarsa.py b/user_scanner/user_scan/adult/zmarsa.py
index be920c1..b53eeab 100644
--- a/user_scanner/user_scan/adult/zmarsa.py
+++ b/user_scanner/user_scan/adult/zmarsa.py
@@ -1,16 +1,63 @@
+import re
from user_scanner.core.orchestrator import generic_validate, Result
+
def validate_zmarsa(user):
url = f"https://zmarsa.com/uzytkownik/{user}"
show_url = url
def process(response):
if "Statystyki" in response.text:
- return Result.taken()
+ extra = {}
+
+ # Avatar image URL (if not default)
+ avatar_match = re.search(
+ r'src="(https://zmarsa.com/storage/avatar/[^"]+)"', response.text)
+ if avatar_match and "default.jpg" not in avatar_match.group(1):
+ extra["image"] = avatar_match.group(1)
+
+ # Date joined
+ joined_match = re.search(
+ r"<p>Dołączył/a (.*?)</p>", response.text, re.IGNORECASE)
+ if joined_match:
+ extra["joined"] = joined_match.group(1).strip()
+
+ # Stats (Points, Ranking, Followers, Following, Posts, Comments)
+ points_match = re.search(
+ r"Punkty:\s*<b>(.*?)</b>", response.text, re.IGNORECASE)
+ if points_match:
+ extra["points"] = points_match.group(1).strip()
+
+ ranking_match = re.search(
+ r"Pozycja w Rankingu:.*?<b>#(.*?)</b>", response.text, re.DOTALL | re.IGNORECASE)
+ if ranking_match:
+ extra["ranking"] = ranking_match.group(1).strip()
+
+ followers_match = re.search(
+ r"Obserwujących:\s*<b>(.*?)</b>", response.text, re.IGNORECASE)
+ if followers_match:
+ extra["followers"] = followers_match.group(1).strip()
+
+ following_match = re.search(
+ r"Obserwowani:\s*<b>(.*?)</b>", response.text, re.IGNORECASE)
+ if following_match:
+ extra["following"] = following_match.group(1).strip()
+
+ posts_match = re.search(
+ r"Dodanych postów:\s*<b>(.*?)</b>", response.text, re.IGNORECASE)
+ if posts_match:
+ extra["posts"] = posts_match.group(1).strip()
+
+ comments_match = re.search(
+ r"Dodanych komentarzy:\s*<b>(.*?)</b>", response.text, re.IGNORECASE)
+ if comments_match:
+ extra["comments"] = comments_match.group(1).strip()
+
+ return Result.taken(extra=extra, url=show_url)
if "<title>Error 404 - zMarsa.com<" in response.text:
- return Result.available()
+ return Result.available(url=show_url)
- return Result.error("Unexpected response body, report it via GitHub issues.")
+ return Result.error("Unexpected response body, report it via GitHub issues.", url=show_url)
return generic_validate(url, process, show_url=show_url)