🕵️♂️ (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: enable deep username scan for 20 modules
Kaif3fe08c10cafc
diff --git a/user_scanner/user_scan/dev/cratesio.py b/user_scanner/user_scan/dev/cratesio.pyindex 3335674..7306733 100644--- a/user_scanner/user_scan/dev/cratesio.py+++ b/user_scanner/user_scan/dev/cratesio.py@@ -1,5 +1,5 @@from user_scanner.core.helpers import get_random_user_agent-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_cratesio(user):@@ -13,4 +13,28 @@ def validate_cratesio(user):"sec-fetch-mode": "cors",}- return status_validate(url, 404, 200, show_url=show_url, headers=headers)+ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ data = response.json()+ u_data = data.get("user", {})+ if u_data:+ if u_data.get("id"):+ extra["id"] = u_data.get("id")+ if u_data.get("name"):+ extra["name"] = u_data.get("name").strip()+ if u_data.get("avatar"):+ extra["avatar"] = u_data.get("avatar")+ if u_data.get("url"):+ extra["github_url"] = u_data.get("url")+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(url, process, show_url=show_url, headers=headers)+diff --git a/user_scanner/user_scan/dev/dockerhub.py b/user_scanner/user_scan/dev/dockerhub.pyindex 9a6a66a..411f2bf 100644--- a/user_scanner/user_scan/dev/dockerhub.py+++ b/user_scanner/user_scan/dev/dockerhub.py@@ -1,5 +1,5 @@from user_scanner.core.helpers import get_random_user_agent-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_dockerhub(user):@@ -11,4 +11,30 @@ def validate_dockerhub(user):"Accept": "application/json",}- return status_validate(url, 404, 200, show_url=show_url, headers=headers)+ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ data = response.json()+ if data.get("id"):+ extra["id"] = data.get("id")+ if data.get("full_name"):+ extra["name"] = data.get("full_name").strip()+ if data.get("company"):+ extra["company"] = data.get("company").strip()+ if data.get("location"):+ extra["location"] = data.get("location").strip()+ if data.get("date_joined"):+ extra["joined"] = data.get("date_joined")+ if data.get("type"):+ extra["type"] = data.get("type")+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(url, process, show_url=show_url, headers=headers)+diff --git a/user_scanner/user_scan/dev/github.py b/user_scanner/user_scan/dev/github.pyindex 5b8ac5b..bd40f40 100644--- a/user_scanner/user_scan/dev/github.py+++ b/user_scanner/user_scan/dev/github.py@@ -3,40 +3,79 @@ from user_scanner.core.orchestrator import Result, generic_validatedef validate_github(user):- url = f"https://github.com/signup_check/username?value={user}"+ url = f"https://github.com/{user}"show_url = f"https://github.com/{user}"headers = {"User-Agent": get_random_user_agent(),- "Accept-Encoding": "gzip, deflate, br, zstd",- "sec-ch-ua-platform": '"Linux"',- "sec-ch-ua": '"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"',- "sec-ch-ua-mobile": "?0",- "sec-fetch-site": "same-origin",- "sec-fetch-mode": "cors",- "sec-fetch-dest": "empty",- "referer": "https://github.com/signup?source=form-home-signup&user_email=",- "accept-language": "en-US,en;q=0.9",- "priority": "u=1, i",+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",+ "Accept-Language": "en-US,en;q=0.9",}- GITHUB_INVALID_MSG = (- "Username may only contain alphanumeric characters or single hyphens, "- "and cannot begin or end with a hyphen."- )-def process(response):- if response.status_code == 200:+ if response.status_code == 404:return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ import re as local_re+ # 1. Name+ name_match = local_re.search(r'itemprop="name">\s*([^<\n\r]+)\s*</span>', response.text)+ if name_match:+ extra["name"] = name_match.group(1).strip()+ # 2. Bio+ bio_match = local_re.search(r'class="p-note user-profile-bio[^"]*"[^>]*><div>([^<]+)</div>', response.text)+ if bio_match:+ extra["bio"] = bio_match.group(1).strip()+ # 3. Company+ company_match = local_re.search(r'itemprop="worksFor"[^>]*aria-label="Organization:\s*([^"]+)"', response.text)+ if company_match:+ extra["company"] = company_match.group(1).strip()+ # 4. Location+ loc_match = local_re.search(r'itemprop="homeLocation"[^>]*aria-label="Home location:\s*([^"]+)"', response.text)+ if loc_match:+ extra["location"] = loc_match.group(1).strip()+ # 5. Website+ web_match = local_re.search(r'itemprop="url"[^>]*>.*?href="([^"]+)"', response.text, local_re.DOTALL)+ if web_match:+ extra["website"] = web_match.group(1).strip()+ # 6. Email+ email_match = local_re.search(r'itemprop="email"[^>]*>.*?href="mailto:([^"]+)"', response.text, local_re.DOTALL)+ if email_match:+ extra["email"] = email_match.group(1).strip()+ # 7. Followers+ followers_match = local_re.search(r'class="text-bold color-fg-default">([0-9.]+[kM]?)</span>\s*followers', response.text)+ if followers_match:+ extra["followers"] = followers_match.group(1)+ # 8. Following+ following_match = local_re.search(r'class="text-bold color-fg-default">([0-9.]+[kM]?)</span>\s*following', response.text)+ if following_match:+ extra["following"] = following_match.group(1)+ # 9. Avatar+ avatar_match = local_re.search(r'itemprop="image"\s+href="([^"]+)"', response.text)+ if avatar_match:+ extra["avatar"] = avatar_match.group(1).replace("&", "&")+ # 10. Organizations+ orgs = local_re.findall(r'data-hovercard-type="organization"[^>]*href="/([^/"]+)"', response.text)+ if orgs:+ unique_orgs = list(dict.fromkeys(orgs))+ extra["organizations"] = ", ".join(unique_orgs)+ # 11. Social Media Links+ socials = local_re.findall(r'itemprop="social".*?href="([^"]+)"', response.text, local_re.DOTALL)+ if socials:+ for s in socials:+ domain_match = local_re.search(r'https?://(?:www\.)?([^/]+)', s)+ if domain_match:+ domain = domain_match.group(1).split(".")[0].capitalize()+ extra[domain] = s+ else:+ extra["social_profile"] = s+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"Unexpected status: {response.status_code}")- if response.status_code == 422:- if GITHUB_INVALID_MSG in response.text:- return Result.error(- "Cannot start/end with hyphen or use double hyphens, underscores"- )-- return Result.taken()+ return generic_validate(url, process, show_url=show_url, headers=headers)- return Result.error("Unexpected GitHub response report it via issues")- return generic_validate(url, process, show_url=show_url, headers=headers)diff --git a/user_scanner/user_scan/dev/gitlab.py b/user_scanner/user_scan/dev/gitlab.pyindex 43faeec..b3c7369 100644--- a/user_scanner/user_scan/dev/gitlab.py+++ b/user_scanner/user_scan/dev/gitlab.py@@ -4,27 +4,36 @@ from user_scanner.core.result import Resultdef validate_gitlab(user):- url = f"https://gitlab.com/users/{user}/exists"+ url = f"https://gitlab.com/api/v4/users?username={user}"show_url = f"https://gitlab.com/{user}"headers = {"User-Agent": get_random_user_agent(),"Accept": "application/json, text/plain, */*",- "X-Requested-With": "XMLHttpRequest",- "Referer": "https://gitlab.com/users/sign_up",}def process(response):if response.status_code == 200:data = response.json()- if "exists" in data:- # Corrected: Compare against Python boolean True/False- # AVAILABLE (return 1) if "exists": true- if data["exists"] is False:+ if isinstance(data, list):+ if len(data) == 0:return Result.available()- # UNAVAILABLE (return 0) if "exists": false- elif data["exists"] is True:- return Result.taken()- return Result.error("Invalid status code")+ else:+ extra = {}+ try:+ u_data = data[0]+ if u_data.get("id"):+ extra["id"] = u_data.get("id")+ if u_data.get("name"):+ extra["name"] = u_data.get("name").strip()+ if u_data.get("state"):+ extra["state"] = u_data.get("state")+ if u_data.get("avatar_url"):+ extra["avatar"] = u_data.get("avatar_url")+ except Exception:+ pass+ return Result.taken(extra=extra)+ return Result.error(f"Unexpected status or response: {response.status_code}")return generic_validate(url, process, show_url=show_url, headers=headers)+diff --git a/user_scanner/user_scan/dev/huggingface.py b/user_scanner/user_scan/dev/huggingface.pyindex bd5bb98..e3b511b 100644--- a/user_scanner/user_scan/dev/huggingface.py+++ b/user_scanner/user_scan/dev/huggingface.py@@ -1,8 +1,39 @@-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_huggingface(user):- url = f"https://huggingface.co/{user}"+ url = f"https://huggingface.co/api/users/{user}/overview"show_url = f"https://huggingface.co/{user}"- return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)+ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ data = response.json()+ if data.get("fullname"):+ extra["name"] = data.get("fullname").strip()+ if data.get("numModels") is not None:+ extra["models"] = data.get("numModels")+ if data.get("numDatasets") is not None:+ extra["datasets"] = data.get("numDatasets")+ if data.get("numSpaces") is not None:+ extra["spaces"] = data.get("numSpaces")+ if data.get("numFollowers") is not None:+ extra["followers"] = data.get("numFollowers")+ if data.get("numFollowing") is not None:+ extra["following"] = data.get("numFollowing")+ if data.get("avatarUrl"):+ avatar = data.get("avatarUrl")+ if avatar.startswith("/"):+ avatar = "https://huggingface.co" + avatar+ extra["avatar"] = avatar+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(url, process, show_url=show_url, follow_redirects=True)+diff --git a/user_scanner/user_scan/music/audiojungle.py b/user_scanner/user_scan/music/audiojungle.pyindex 37856b1..2f21c14 100644--- a/user_scanner/user_scan/music/audiojungle.py+++ b/user_scanner/user_scan/music/audiojungle.py@@ -1,7 +1,47 @@-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.helpers import get_random_user_agent+from user_scanner.core.orchestrator import generic_validate, Result+def validate_audiojungle(user):url = f"https://audiojungle.net/user/{user}"show_url = f"https://audiojungle.net/user/{user}"- return status_validate(url, 404, 200, show_url=show_url)+ headers = {+ "User-Agent": get_random_user_agent(),+ }++ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ import re as local_re+ # 1. Location+ loc_match = local_re.search(r'<p class="t-body -size-m h-p0 h-mb0">\s*([^,\n\r]+),', response.text)+ if loc_match:+ extra["location"] = loc_match.group(1).strip()+ # 2. Joined Date+ joined_match = local_re.search(r'Member since ([^<\n\r]+)', response.text)+ if joined_match:+ extra["joined"] = joined_match.group(1).strip()+ # 3. Avatar+ avatar_match = local_re.search(r'class="user-info-header__user-details">\s*<img[^>]*src="([^"]+)"', response.text, local_re.DOTALL)+ if avatar_match:+ extra["avatar"] = avatar_match.group(1).strip()+ # 4. Followers+ followers_match = local_re.search(r'href="/user/[^/]+/followers">Followers\s*<span[^>]*>([0-9]+)</span>', response.text, local_re.DOTALL)+ if followers_match:+ extra["followers"] = int(followers_match.group(1))+ # 5. Following+ following_match = local_re.search(r'href="/user/[^/]+/following">Following\s*<span[^>]*>([0-9]+)</span>', response.text, local_re.DOTALL)+ if following_match:+ extra["following"] = int(following_match.group(1))+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(url, process, show_url=show_url, headers=headers)+diff --git a/user_scanner/user_scan/music/bandcamp.py b/user_scanner/user_scan/music/bandcamp.pyindex 7b60b6e..ed60a83 100644--- a/user_scanner/user_scan/music/bandcamp.py+++ b/user_scanner/user_scan/music/bandcamp.py@@ -7,7 +7,40 @@ def validate_bandcamp(user):def process(response):if response.status_code == 200 and " collection | Bandcamp</title>" in response.text:- return Result.taken()+ extra = {}+ try:+ import re as local_re+ import html as local_html+ import json as local_json+ m = local_re.search(r'data-blob=\"([^\"]+)\"', response.text)+ if m:+ blob_data = local_json.loads(local_html.unescape(m.group(1)))+ fan = blob_data.get("fan_data", {})+ if fan:+ if fan.get("fan_id"):+ extra["id"] = fan.get("fan_id")+ if fan.get("name"):+ extra["name"] = fan.get("name")+ if fan.get("location"):+ extra["location"] = fan.get("location")+ if fan.get("bio"):+ extra["bio"] = fan.get("bio")+ if fan.get("website_url"):+ extra["website"] = fan.get("website_url")+ if fan.get("followers_count") is not None:+ extra["followers"] = fan.get("followers_count")+ if fan.get("following_bands_count") is not None:+ extra["following_bands"] = fan.get("following_bands_count")+ if fan.get("following_fans_count") is not None:+ extra["following_fans"] = fan.get("following_fans_count")+ if fan.get("fav_genre"):+ extra["fav_genre"] = fan.get("fav_genre")+ if fan.get("photo") and isinstance(fan["photo"], dict) and fan["photo"].get("image_id"):+ img_id = fan["photo"]["image_id"]+ extra["avatar"] = f"https://f4.bcbits.com/img/00{img_id}_10.jpg"+ except Exception:+ pass+ return Result.taken(extra=extra)if response.status_code == 404 or "<h2>Sorry, that something isn’t here.</h2>" in response.text:return Result.available()@@ -15,3 +48,4 @@ def validate_bandcamp(user):return Result.error("Unexpected response body, report it via GitHub issues.")return generic_validate(url, process, show_url=show_url)+diff --git a/user_scanner/user_scan/music/bandlab.py b/user_scanner/user_scan/music/bandlab.pyindex 239ea26..74185c6 100644--- a/user_scanner/user_scan/music/bandlab.py+++ b/user_scanner/user_scan/music/bandlab.py@@ -7,7 +7,34 @@ def validate_bandlab(user):def process(response):if response.status_code == 200 and "about" in response.text:- return Result.taken()+ extra = {}+ try:+ data = response.json()+ if data.get("id"):+ extra["id"] = data.get("id")+ if data.get("name"):+ extra["name"] = data.get("name").strip()+ if data.get("about"):+ extra["bio"] = data.get("about").strip()+ if data.get("place"):+ extra["location"] = data.get("place")+ if data.get("createdOn"):+ extra["joined"] = data.get("createdOn")+ counters = data.get("counters", {})+ if counters:+ if counters.get("followers") is not None:+ extra["followers"] = counters.get("followers")+ if counters.get("following") is not None:+ extra["following"] = counters.get("following")+ if counters.get("plays") is not None:+ extra["plays"] = counters.get("plays")+ if counters.get("bands") is not None:+ extra["bands"] = counters.get("bands")+ if data.get("picture") and isinstance(data["picture"], dict) and data["picture"].get("url"):+ extra["avatar"] = data["picture"]["url"]+ except Exception:+ pass+ return Result.taken(extra=extra)if response.status_code == 404 or "Couldn't find any matching element" in response.text:return Result.available()@@ -15,3 +42,4 @@ def validate_bandlab(user):return Result.error("Unexpected response body, report it via GitHub issues.")return generic_validate(url, process, show_url=show_url)+diff --git a/user_scanner/user_scan/music/beatstars.py b/user_scanner/user_scan/music/beatstars.pyindex 850cdbd..836a142 100644--- a/user_scanner/user_scan/music/beatstars.py+++ b/user_scanner/user_scan/music/beatstars.py@@ -42,7 +42,19 @@ def validate_beatstars(user):if identifier_data.get("available") is True:return Result.available()- return Result.taken()+ extra = {}+ try:+ profile = identifier_data.get("profileDetails", {})+ if profile:+ artwork = profile.get("artwork", {})+ if artwork:+ avatar = artwork.get("fitInUrl") or artwork.get("url")+ if avatar:+ extra["avatar"] = avatar+ except Exception:+ pass++ return Result.taken(extra=extra)except (AttributeError, ValueError, KeyError):return Result.error("Failed to decode server response, report it via GitHub issues")diff --git a/user_scanner/user_scan/music/discogs.py b/user_scanner/user_scan/music/discogs.pyindex b940a12..5632b02 100644--- a/user_scanner/user_scan/music/discogs.py+++ b/user_scanner/user_scan/music/discogs.py@@ -7,7 +7,36 @@ def validate_discogs(user):def process(response):if response.status_code == 200 and "\"id\":" in response.text:- return Result.taken()+ extra = {}+ try:+ data = response.json()+ if data.get("id"):+ extra["id"] = data.get("id")+ if data.get("name"):+ extra["name"] = data.get("name").strip()+ if data.get("location"):+ extra["location"] = data.get("location").strip()+ if data.get("profile"):+ extra["bio"] = data.get("profile").strip()+ if data.get("registered"):+ extra["joined"] = data.get("registered")+ if data.get("releases_contributed") is not None:+ extra["releases_contributed"] = data.get("releases_contributed")+ if data.get("releases_rated") is not None:+ extra["releases_rated"] = data.get("releases_rated")+ if data.get("num_lists") is not None:+ extra["lists"] = data.get("num_lists")+ if data.get("num_collection") is not None:+ extra["collection_items"] = data.get("num_collection")+ if data.get("num_wantlist") is not None:+ extra["wantlist_items"] = data.get("num_wantlist")+ if data.get("home_page"):+ extra["website"] = data.get("home_page").strip()+ if data.get("avatar_url"):+ extra["avatar"] = data.get("avatar_url")+ except Exception:+ pass+ return Result.taken(extra=extra)if response.status_code == 404 or "\"message\": \"User does not exist or may have been deleted.\"" in response.text:return Result.available()@@ -15,3 +44,4 @@ def validate_discogs(user):return Result.error("Unexpected response body, report it via GitHub issues.")return generic_validate(url, process, show_url=show_url)+diff --git a/user_scanner/user_scan/music/freesound.py b/user_scanner/user_scan/music/freesound.pyindex beafae4..f10a99f 100644--- a/user_scanner/user_scan/music/freesound.py+++ b/user_scanner/user_scan/music/freesound.py@@ -7,7 +7,36 @@ def validate_freesound(user):def process(response):if response.status_code == 200 and "forum posts" in response.text.lower():- return Result.taken()+ extra = {}+ try:+ import re as local_re+ # 1. Sounds count+ sounds_match = local_re.search(r'([0-9]+)\s+sounds', response.text)+ if sounds_match:+ extra["sounds"] = int(sounds_match.group(1))+ # 2. Packs count+ packs_match = local_re.search(r'([0-9]+)\s+packs', response.text)+ if packs_match:+ extra["packs"] = int(packs_match.group(1))+ # 3. Audio duration minutes+ duration_match = local_re.search(r'([0-9:]+)\s+minutes', response.text)+ if duration_match:+ extra["duration"] = duration_match.group(1)+ # 4. Average rating+ rating_match = local_re.search(r'([0-9.]+)\s+average rating', response.text)+ if rating_match:+ extra["average_rating"] = float(rating_match.group(1))+ # 5. Downloads count+ downloads_match = local_re.search(r'([0-9]+)\s+downloads', response.text)+ if downloads_match:+ extra["downloads"] = int(downloads_match.group(1))+ # 6. Forum posts+ forum_match = local_re.search(r'([0-9]+)\s+forum posts', response.text)+ if forum_match:+ extra["forum_posts"] = int(forum_match.group(1))+ except Exception:+ pass+ return Result.taken(extra=extra)if response.status_code == 404 or "Page not found" in response.text:return Result.available()@@ -15,3 +44,4 @@ def validate_freesound(user):return Result.error("Unexpected response body, report it via GitHub issues.")return generic_validate(url, process, show_url=show_url)+diff --git a/user_scanner/user_scan/music/lastfm.py b/user_scanner/user_scan/music/lastfm.pyindex b09f6a9..9c86ec6 100644--- a/user_scanner/user_scan/music/lastfm.py+++ b/user_scanner/user_scan/music/lastfm.py@@ -1,8 +1,42 @@-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_lastfm(user):url = f"https://www.last.fm/user/{user}"show_url = f"https://www.last.fm/user/{user}"- return status_validate(url, 404, 200, show_url=show_url)+ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ import re as local_re+ # 1. Display Name+ display_name_match = local_re.search(r'class="header-title-display-name">\s*([^<\n\r]+)', response.text)+ if display_name_match:+ extra["display_name"] = display_name_match.group(1).strip()+ # 2. Scrobbling since+ since_match = local_re.search(r'scrobbling since\s*([^<\n\r]+)', response.text)+ if since_match:+ extra["scrobbling_since"] = since_match.group(1).strip()+ # 3. Scrobbles+ scrobbles_match = local_re.search(r'Scrobbles.*?<p[^>]*>.*?<a[^>]*>([^<]+)</a>', response.text, local_re.DOTALL)+ if scrobbles_match:+ extra["scrobbles"] = scrobbles_match.group(1).strip()+ # 4. Artists+ artists_match = local_re.search(r'Artists.*?<p[^>]*>.*?<a[^>]*>([^<]+)</a>', response.text, local_re.DOTALL)+ if artists_match:+ extra["artists"] = artists_match.group(1).strip()+ # 5. Avatar+ avatar_match = local_re.search(r'src="([^"]+)"[^>]*alt="Avatar for [^"]+"[^>]*itemprop="image"', response.text, local_re.DOTALL)+ if avatar_match:+ extra["avatar"] = avatar_match.group(1).strip()+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(url, process, show_url=show_url)+diff --git a/user_scanner/user_scan/music/soundcloud.py b/user_scanner/user_scan/music/soundcloud.pyindex 1153688..f078baa 100644--- a/user_scanner/user_scan/music/soundcloud.py+++ b/user_scanner/user_scan/music/soundcloud.py@@ -16,12 +16,51 @@ def validate_soundcloud(user):if response.status_code == 200:text = response.text+ is_taken = Falseif f"soundcloud://users:{user}" in text:- return Result.taken()- if f'"username":"{user}"' in text:- return Result.taken()- if "soundcloud://users:" in text and '"username":"' in text:- return Result.taken()+ is_taken = True+ elif f'"username":"{user}"' in text:+ is_taken = True+ elif "soundcloud://users:" in text and '"username":"' in text:+ is_taken = True++ if is_taken:+ extra = {}+ try:+ import re as local_re+ import json as local_json+ m = local_re.search(r'window\.__sc_hydration\s*=\s*(.*?);', text)+ if m:+ hydration_data = local_json.loads(m.group(1))+ user_item = next((item for item in hydration_data if item.get("hydratable") == "user"), None)+ if user_item and user_item.get("data"):+ u_data = user_item["data"]+ if u_data.get("id"):+ extra["id"] = u_data.get("id")+ if u_data.get("full_name"):+ extra["name"] = u_data.get("full_name").strip()+ if u_data.get("city") or u_data.get("country_code"):+ locs = [u_data.get("city"), u_data.get("country_code")]+ extra["location"] = ", ".join(filter(None, locs))+ if u_data.get("description"):+ extra["bio"] = u_data.get("description").strip()+ if u_data.get("followers_count") is not None:+ extra["followers"] = u_data.get("followers_count")+ if u_data.get("followings_count") is not None:+ extra["following"] = u_data.get("followings_count")+ if u_data.get("track_count") is not None:+ extra["tracks"] = u_data.get("track_count")+ if u_data.get("playlist_count") is not None:+ extra["playlists"] = u_data.get("playlist_count")+ if u_data.get("likes_count") is not None:+ extra["likes"] = u_data.get("likes_count")+ if u_data.get("avatar_url"):+ extra["avatar"] = u_data.get("avatar_url")+ if u_data.get("verified"):+ extra["verified"] = "Yes"+ except Exception:+ pass+ return Result.taken(extra=extra)return Result.error("Unexpected response, report it via GitHub issues")diff --git a/user_scanner/user_scan/social/35photo.py b/user_scanner/user_scan/social/35photo.pyindex 1f16f97..e3948eb 100644--- a/user_scanner/user_scan/social/35photo.py+++ b/user_scanner/user_scan/social/35photo.py@@ -6,7 +6,31 @@ def validate_35photo(user):def process(response):if '<span title="Total photos' in response.text:- return Result.taken()+ extra = {}+ try:+ import re as local_re+ # Name+ name_match = local_re.search(r'<h1 class="thinFont">([^<]+)</h1>', response.text)+ if name_match:+ extra["name"] = name_match.group(1).strip()+ # Location+ loc_match = local_re.search(r'title="Photographers from ([^"]+)"', response.text)+ if loc_match:+ extra["country"] = loc_match.group(1).strip()+ city_match = local_re.search(r'title="Photographers from the city of\s*([^"]+)"', response.text)+ if city_match:+ extra["city"] = city_match.group(1).strip()+ # Total photos+ photos_match = local_re.search(r'Total photos see.*?font-size:2.6em">([0-9]+)</span>', response.text, local_re.DOTALL)+ if photos_match:+ extra["photos"] = int(photos_match.group(1))+ # Avatar+ avatar_match = local_re.search(r'img class="avatar140"\s+src="([^"]+)"', response.text)+ if avatar_match:+ extra["avatar"] = avatar_match.group(1)+ except Exception:+ pass+ return Result.taken(extra=extra)if "Catalogs of professional author" in response.text or response.status_code == 302:return Result.available()@@ -14,3 +38,4 @@ def validate_35photo(user):return Result.error("Unexpected response body, report it via GitHub issues.")return generic_validate(url, process, show_url=show_url)+diff --git a/user_scanner/user_scan/social/anilist.py b/user_scanner/user_scan/social/anilist.pyindex 8c79435..df3d6c4 100644--- a/user_scanner/user_scan/social/anilist.py+++ b/user_scanner/user_scan/social/anilist.py@@ -7,11 +7,30 @@ def validate_anilist(user):headers = {"accept": "application/json", "Content-Type": "application/json"}- payload = {"query": 'query{User(name:"' + user + '"){id name}}'}+ payload = {"query": 'query{User(name:"' + user + '"){id name about avatar{large} bannerImage}}'}def process(response):if response.status_code == 200 and '"id":' in response.text:- return Result.taken()+ extra = {}+ try:+ data = response.json()+ user_data = data.get("data", {}).get("User", {})+ if user_data:+ if user_data.get("id"):+ extra["id"] = user_data.get("id")+ if user_data.get("about"):+ # strip html tags if any in about+ import re+ clean_about = re.sub('<[^<]+?>', '', user_data.get("about"))+ extra["about"] = clean_about.strip()+ if user_data.get("avatar") and isinstance(user_data["avatar"], dict) and user_data["avatar"].get("large"):+ extra["avatar"] = user_data["avatar"]["large"]+ if user_data.get("bannerImage"):+ extra["banner"] = user_data.get("bannerImage")+ except Exception:+ pass # Gracefully ignore any parsing issues and fallback to basic taken status++ return Result.taken(extra=extra)if response.status_code == 404 or "Not Found" in response.text:return Result.available()@@ -21,3 +40,4 @@ def validate_anilist(user):return generic_validate(url, process, show_url=show_url, method="POST", json=payload, headers=headers)+diff --git a/user_scanner/user_scan/social/bluesky.py b/user_scanner/user_scan/social/bluesky.pyindex 1bd6a91..752d1cc 100644--- a/user_scanner/user_scan/social/bluesky.py+++ b/user_scanner/user_scan/social/bluesky.py@@ -41,7 +41,32 @@ def validate_bluesky(user):result_type== "com.atproto.temp.checkHandleAvailability#resultUnavailable"):- return Result.taken()+ extra = {}+ try:+ import httpx+ profile_res = httpx.get(+ "https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile",+ params={"actor": handle},+ headers={"User-Agent": headers["User-Agent"]},+ timeout=5.0+ )+ if profile_res.status_code == 200:+ p_data = profile_res.json()+ if p_data.get("displayName"):+ extra["display_name"] = p_data.get("displayName")+ if p_data.get("description"):+ extra["bio"] = p_data.get("description").strip()+ if p_data.get("followersCount") is not None:+ extra["followers"] = p_data.get("followersCount")+ if p_data.get("followsCount") is not None:+ extra["following"] = p_data.get("followsCount")+ if p_data.get("postsCount") is not None:+ extra["posts"] = p_data.get("postsCount")+ if p_data.get("avatar"):+ extra["avatar"] = p_data.get("avatar")+ except Exception:+ pass+ return Result.taken(extra=extra)elif response.status_code == 400:return Result.error("Username can only contain letters, numbers, hyphens (no leading/trailing)"diff --git a/user_scanner/user_scan/social/mastodon.py b/user_scanner/user_scan/social/mastodon.pyindex 03896e7..5d93ee7 100644--- a/user_scanner/user_scan/social/mastodon.py+++ b/user_scanner/user_scan/social/mastodon.py@@ -1,6 +1,6 @@import re-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validatefrom user_scanner.core.result import Result@@ -19,6 +19,36 @@ def validate_mastodon(user: str) -> Result:url = f"https://mastodon.social/api/v1/accounts/lookup?acct={user}"show_url = f"https://mastodon.social/@{user}"- return status_validate(- url, available=404, taken=200, show_url=show_url, follow_redirects=True+ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ data = response.json()+ if data.get("id"):+ extra["id"] = data.get("id")+ if data.get("display_name"):+ extra["display_name"] = data.get("display_name")+ if data.get("note"):+ import re as local_re+ clean_note = local_re.sub('<[^<]+?>', '', data.get("note"))+ extra["bio"] = clean_note.strip()+ if data.get("followers_count") is not None:+ extra["followers"] = data.get("followers_count")+ if data.get("following_count") is not None:+ extra["following"] = data.get("following_count")+ if data.get("statuses_count") is not None:+ extra["posts"] = data.get("statuses_count")+ if data.get("avatar"):+ extra["avatar"] = data.get("avatar")+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(+ url, process, show_url=show_url, follow_redirects=True)+diff --git a/user_scanner/user_scan/social/openstreetmap.py b/user_scanner/user_scan/social/openstreetmap.pyindex 8afbce5..99c72f6 100644--- a/user_scanner/user_scan/social/openstreetmap.py+++ b/user_scanner/user_scan/social/openstreetmap.py@@ -10,7 +10,21 @@ def validate_openstreetmap(user):if response.status_code == 404:return Result.available()if "Mapper since" in response.text:- return Result.taken()+ extra = {}+ try:+ import re as local_re+ match = local_re.search(r"Mapper since:</dt>\s*<dd[^>]*>([^<]+)</dd>", response.text)+ if match:+ extra["joined"] = match.group(1).strip()+ avatar_match = local_re.search(r'class="user_image"[^>]*src="([^"]+)"', response.text)+ if avatar_match:+ img_url = avatar_match.group(1)+ if img_url.startswith("/"):+ img_url = "https://www.openstreetmap.org" + img_url+ extra["avatar"] = img_url+ except Exception:+ pass+ return Result.taken(extra=extra)if "does not exist" in response.text:return Result.available()return Result.error()diff --git a/user_scanner/user_scan/social/pinterest.py b/user_scanner/user_scan/social/pinterest.pyindex c52b791..163c00c 100644--- a/user_scanner/user_scan/social/pinterest.py+++ b/user_scanner/user_scan/social/pinterest.py@@ -10,9 +10,43 @@ def validate_pinterest(user):if response.status_code == 200:if "User not found." in response.text:return Result.available()- else:- return Result.taken()++ extra = {}+ try:+ import re as local_re+ import json as local_json+ m = local_re.search(r'<script id="__PWS_INITIAL_PROPS__"[^>]*>(.*?)</script>', response.text)+ if m:+ props_data = local_json.loads(m.group(1))+ users_dict = props_data.get("initialReduxState", {}).get("users", {})+ # Find user key that is a numeric ID (not empty string)+ user_key = next((k for k in users_dict.keys() if k != ""), None)+ if user_key and users_dict.get(user_key):+ u_data = users_dict[user_key]+ if u_data.get("full_name"):+ extra["name"] = u_data.get("full_name")+ if u_data.get("about"):+ extra["bio"] = u_data.get("about").strip()+ if u_data.get("follower_count") is not None:+ extra["followers"] = u_data.get("follower_count")+ if u_data.get("following_count") is not None:+ extra["following"] = u_data.get("following_count")+ if u_data.get("board_count") is not None:+ extra["boards"] = u_data.get("board_count")+ if u_data.get("pin_count") is not None:+ extra["pins"] = u_data.get("pin_count")+ if u_data.get("website_url"):+ extra["website"] = u_data.get("website_url")+ if u_data.get("image_xlarge_url"):+ extra["avatar"] = u_data.get("image_xlarge_url")+ elif u_data.get("image_medium_url"):+ extra["avatar"] = u_data.get("image_medium_url")+ except Exception:+ pass++ return Result.taken(extra=extra)else:return Result.error("Invalid status code")return generic_validate(url, process, show_url=show_url, follow_redirects=True)+diff --git a/user_scanner/user_scan/social/snapchat.py b/user_scanner/user_scan/social/snapchat.pyindex c75ee87..82cb4b4 100644--- a/user_scanner/user_scan/social/snapchat.py+++ b/user_scanner/user_scan/social/snapchat.py@@ -1,5 +1,5 @@from user_scanner.core.helpers import get_random_user_agent-from user_scanner.core.orchestrator import status_validate+from user_scanner.core.orchestrator import generic_validate, Resultdef validate_snapchat(user):@@ -22,6 +22,31 @@ def validate_snapchat(user):"priority": "u=0, i",}- return status_validate(- url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True+ def process(response):+ if response.status_code == 404:+ return Result.available()+ elif response.status_code == 200:+ extra = {}+ try:+ import re as local_re+ import json as local_json+ m = local_re.search(r'<script id="__NEXT_DATA__"[^>]*>(.*?)</script>', response.text)+ if m:+ next_data = local_json.loads(m.group(1))+ user_profile = next_data.get("props", {}).get("pageProps", {}).get("userProfile", {})+ u_info = user_profile.get("userInfo", {})+ if u_info:+ if u_info.get("displayName"):+ extra["display_name"] = u_info.get("displayName")+ if u_info.get("snapcodeImageUrl"):+ extra["snapcode"] = u_info.get("snapcodeImageUrl")+ except Exception:+ pass+ return Result.taken(extra=extra)+ else:+ return Result.error(f"HTTP {response.status_code}")++ return generic_validate(+ url, process, show_url=show_url, headers=headers, follow_redirects=True)+