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.

add: 34 new user_scan modules added to multiple categories

Kaif6e3161788df4
diff --git a/user_scanner/user_scan/community/disqus.py b/user_scanner/user_scan/community/disqus.py
new file mode 100644
index 0000000..a48c3eb
--- /dev/null
+++ b/user_scanner/user_scan/community/disqus.py
@@ -0,0 +1,26 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_disqus(user):
+ api_url = f"https://disqus.com/api/3.0/users/details?user=username%3A{user}&attach=userFlaggedUser&api_key=E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F"
+ show_url = f"https://disqus.com/by/{user}/"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ resp = make_request(api_url, headers=headers, http2=True)
+ if resp.status_code == 200:
+ try:
+ data = resp.json()
+ if "response" in data and "id" in data["response"]:
+ user_data = data["response"]
+ extra = {}
+ for key in ["id", "name", "numFollowers", "numFollowing", "numPosts", "location", "joinedAt", "rep"]:
+ if key in user_data and user_data[key]:
+ extra[key] = user_data[key]
+ return Result.taken(extra=extra, url=show_url)
+ except:
+ pass
+ return Result.available(url=show_url)
diff --git a/user_scanner/user_scan/community/wikipedia.py b/user_scanner/user_scan/community/wikipedia.py
new file mode 100644
index 0000000..a241f4a
--- /dev/null
+++ b/user_scanner/user_scan/community/wikipedia.py
@@ -0,0 +1,40 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_wikipedia(user):
+ # Using formatversion=2 for a cleaner JSON response
+ api_url = f"https://en.wikipedia.org/w/api.php?action=query&format=json&list=users&ususers={user}&usprop=editcount|registration|gender&formatversion=2"
+ show_url = f"https://en.wikipedia.org/wiki/User:{user}"
+
+ try:
+ response = make_request(api_url, follow_redirects=True, http2=True)
+ if response.status_code == 200:
+ data = response.json()
+ users = data.get("query", {}).get("users", [])
+
+ if not users:
+ return Result.error("Invalid API response format", url=show_url)
+
+ user_data = users[0]
+
+ # Wikipedia API returns a "missing" key if the user does not exist
+ if "missing" in user_data:
+ return Result.available(url=show_url)
+
+ extra = {}
+ if userid := user_data.get("userid"):
+ extra["userid"] = str(userid)
+ if editcount := user_data.get("editcount"):
+ extra["editcount"] = str(editcount)
+ if registration := user_data.get("registration"):
+ extra["registration"] = registration
+ if gender := user_data.get("gender"):
+ extra["gender"] = gender
+
+ return Result.taken(extra=extra, url=show_url)
+
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/creator/boosty.py b/user_scanner/user_scan/creator/boosty.py
new file mode 100644
index 0000000..0710f1c
--- /dev/null
+++ b/user_scanner/user_scan/creator/boosty.py
@@ -0,0 +1,44 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_boosty(user):
+ url = f"https://api.boosty.to/v1/blog/{user}"
+ show_url = f"https://boosty.to/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('owner'):
+ extra = {}
+
+ owner = data.get('owner', {})
+ if owner.get('id'):
+ extra['id'] = owner.get('id')
+ if owner.get('name'):
+ extra['name'] = owner.get('name')
+
+ count = data.get('count', {})
+ if count.get('subscribers') is not None:
+ extra['subscribers'] = count.get('subscribers')
+ if count.get('posts') is not None:
+ extra['posts'] = count.get('posts')
+
+ if data.get('title'):
+ extra['title'] = data.get('title')
+
+ apps = owner.get('externalApps', {})
+ if apps.get('discord', {}).get('hasAccount'):
+ extra['has_discord'] = True
+ if apps.get('telegram', {}).get('hasAccount'):
+ extra['has_telegram'] = True
+
+ 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"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/creator/fansly.py b/user_scanner/user_scan/creator/fansly.py
new file mode 100644
index 0000000..e591097
--- /dev/null
+++ b/user_scanner/user_scan/creator/fansly.py
@@ -0,0 +1,37 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_fansly(user):
+ url = f"https://apiv2.fansly.com/api/v1/account?usernames={user}"
+ show_url = f"https://fansly.com/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('success') and data.get('response'):
+ res = data['response'][0]
+ extra = {}
+ if res.get('id'):
+ extra['id'] = res.get('id')
+ if res.get('displayName'):
+ extra['displayName'] = res.get('displayName')
+ if res.get('followCount') is not None:
+ extra['followers'] = res.get('followCount')
+
+ timelineStats = res.get('timelineStats', {})
+ if timelineStats:
+ if timelineStats.get('imageCount') is not None:
+ extra['images'] = timelineStats.get('imageCount')
+ if timelineStats.get('videoCount') is not None:
+ extra['videos'] = timelineStats.get('videoCount')
+
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/creator/vimeo.py b/user_scanner/user_scan/creator/vimeo.py
new file mode 100644
index 0000000..5626570
--- /dev/null
+++ b/user_scanner/user_scan/creator/vimeo.py
@@ -0,0 +1,41 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_vimeo(user):
+ url = f"https://vimeo.com/api/v2/{user}/info.json"
+ show_url = f"https://vimeo.com/{user}"
+
+ 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('display_name'):
+ extra['display_name'] = data.get('display_name')
+ if data.get('created_on'):
+ extra['created_on'] = data.get('created_on')
+ if data.get('location'):
+ extra['location'] = data.get('location')
+ if data.get('bio'):
+ extra['bio'] = data.get('bio')
+ if data.get('total_videos_uploaded') is not None:
+ extra['videos'] = data.get('total_videos_uploaded')
+ if data.get('total_contacts') is not None:
+ extra['contacts'] = data.get('total_contacts')
+ if data.get('total_channels') is not None:
+ extra['channels'] = data.get('total_channels')
+ if data.get('total_videos_liked') is not None:
+ extra['liked'] = data.get('total_videos_liked')
+
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/dev/codeforces.py b/user_scanner/user_scan/dev/codeforces.py
new file mode 100644
index 0000000..cb37f81
--- /dev/null
+++ b/user_scanner/user_scan/dev/codeforces.py
@@ -0,0 +1,44 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_codeforces(user):
+ url = f"https://codeforces.com/api/user.info?handles={user}"
+ show_url = f"https://codeforces.com/profile/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('status') == 'OK' and data.get('result'):
+ res = data['result'][0]
+ extra = {}
+ if res.get('firstName'):
+ extra['firstName'] = res.get('firstName')
+ if res.get('lastName'):
+ extra['lastName'] = res.get('lastName')
+ if res.get('country'):
+ extra['country'] = res.get('country')
+ if res.get('city'):
+ extra['city'] = res.get('city')
+ if res.get('organization'):
+ extra['organization'] = res.get('organization')
+ if res.get('rating') is not None:
+ extra['rating'] = res.get('rating')
+ if res.get('maxRating') is not None:
+ extra['maxRating'] = res.get('maxRating')
+ if res.get('rank'):
+ extra['rank'] = res.get('rank')
+ if res.get('maxRank'):
+ extra['maxRank'] = res.get('maxRank')
+ if res.get('friendOfCount') is not None:
+ extra['friendOfCount'] = res.get('friendOfCount')
+
+ return Result.taken(extra=extra)
+ except Exception:
+ pass
+ elif response.status_code == 400 or 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/dev/codewars.py b/user_scanner/user_scan/dev/codewars.py
new file mode 100644
index 0000000..4434c4d
--- /dev/null
+++ b/user_scanner/user_scan/dev/codewars.py
@@ -0,0 +1,30 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_codewars(user):
+ url = f"https://www.codewars.com/api/v1/users/{user}"
+ show_url = f"https://www.codewars.com/users/{user}"
+
+ 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('name'): extra['name'] = data.get('name')
+ if data.get('honor') is not None: extra['honor'] = data.get('honor')
+ if data.get('clan'): extra['clan'] = data.get('clan')
+ if data.get('leaderboardPosition') is not None: extra['leaderboard_position'] = data.get('leaderboardPosition')
+ ranks = data.get('ranks', {}).get('overall', {})
+ if ranks.get('name'): extra['rank_name'] = ranks.get('name')
+ if ranks.get('score') is not None: extra['score'] = ranks.get('score')
+ 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)
diff --git a/user_scanner/user_scan/dev/gitea.py b/user_scanner/user_scan/dev/gitea.py
new file mode 100644
index 0000000..399bd17
--- /dev/null
+++ b/user_scanner/user_scan/dev/gitea.py
@@ -0,0 +1,29 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_gitea(user):
+ url = f"https://gitea.com/api/v1/users/{user}"
+ show_url = f"https://gitea.com/{user}"
+
+ 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)
diff --git a/user_scanner/user_scan/dev/gitee.py b/user_scanner/user_scan/dev/gitee.py
new file mode 100644
index 0000000..a3a2d6e
--- /dev/null
+++ b/user_scanner/user_scan/dev/gitee.py
@@ -0,0 +1,30 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_gitee(user):
+ url = f"https://gitee.com/api/v5/users/{user}"
+ show_url = f"https://gitee.com/{user}"
+
+ 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('name'): extra['name'] = data.get('name')
+ if data.get('bio'): extra['bio'] = data.get('bio')
+ if data.get('blog'): extra['blog'] = data.get('blog')
+ if data.get('public_repos') is not None: extra['public_repos'] = data.get('public_repos')
+ if data.get('followers') is not None: extra['followers'] = data.get('followers')
+ if data.get('following') is not None: extra['following'] = data.get('following')
+ 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)
diff --git a/user_scanner/user_scan/dev/hackerrank.py b/user_scanner/user_scan/dev/hackerrank.py
new file mode 100644
index 0000000..b370983
--- /dev/null
+++ b/user_scanner/user_scan/dev/hackerrank.py
@@ -0,0 +1,30 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_hackerrank(user):
+ url = f"https://www.hackerrank.com/rest/contests/master/hackers/{user}/profile"
+ show_url = f"https://www.hackerrank.com/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ m = data.get('model', {})
+ if m and m.get('id'):
+ extra = {}
+ if m.get('id'): extra['id'] = m.get('id')
+ if m.get('username'): extra['username'] = m.get('username')
+ if m.get('country'): extra['country'] = m.get('country')
+ if m.get('school'): extra['school'] = m.get('school')
+ if m.get('created_at'): extra['created_at'] = m.get('created_at')
+ if m.get('level') is not None: extra['level'] = m.get('level')
+ if m.get('company'): extra['company'] = m.get('company')
+ 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)
diff --git a/user_scanner/user_scan/dev/microsoftlearn.py b/user_scanner/user_scan/dev/microsoftlearn.py
new file mode 100644
index 0000000..b66d9b9
--- /dev/null
+++ b/user_scanner/user_scan/dev/microsoftlearn.py
@@ -0,0 +1,35 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_microsoftlearn(user):
+ url = f"https://learn.microsoft.com/api/profiles/{user}"
+ show_url = f"https://learn.microsoft.com/en-us/users/{user}/"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('userId'):
+ extra = {}
+ if data.get('displayName'):
+ extra['name'] = data.get('displayName')
+ if data.get('reputationPoints') is not None:
+ extra['reputation'] = data.get('reputationPoints')
+ if data.get('followerCount') is not None:
+ extra['followers'] = data.get('followerCount')
+ if data.get('followingCount') is not None:
+ extra['following'] = data.get('followingCount')
+ if data.get('answersAccepted') is not None:
+ extra['answers_accepted'] = data.get('answersAccepted')
+ if data.get('createdOn'):
+ extra['created_on'] = data.get('createdOn')
+
+ 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"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/dev/scratch.py b/user_scanner/user_scan/dev/scratch.py
new file mode 100644
index 0000000..d2eda73
--- /dev/null
+++ b/user_scanner/user_scan/dev/scratch.py
@@ -0,0 +1,39 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_scratch(user):
+ api_url = f"https://api.scratch.mit.edu/users/{user}"
+ show_url = f"https://scratch.mit.edu/users/{user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ try:
+ response = make_request(api_url, headers=headers, follow_redirects=True)
+ if response.status_code == 200:
+ data = response.json()
+
+ extra = {}
+ if user_id := data.get("id"):
+ extra["id"] = str(user_id)
+ if history := data.get("history", {}):
+ if joined := history.get("joined"):
+ extra["joined"] = joined
+ if profile := data.get("profile", {}):
+ if images := profile.get("images", {}):
+ if avatar := images.get("90x90"):
+ extra["avatar"] = avatar
+ if country := profile.get("country"):
+ extra["country"] = country
+
+ return Result.taken(extra=extra, url=show_url)
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/finance/niftygateway.py b/user_scanner/user_scan/finance/niftygateway.py
new file mode 100644
index 0000000..8245c4d
--- /dev/null
+++ b/user_scanner/user_scan/finance/niftygateway.py
@@ -0,0 +1,35 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_niftygateway(user):
+ url = f"https://api.niftygateway.com/user/profile-and-offchain-nifties-by-url/?profile_url={user}"
+ show_url = f"https://niftygateway.com/profile/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('didSucceed'):
+ user_info = data.get('userProfileAndNifties', {})
+ if user_info and user_info.get('id'):
+ extra = {}
+ if user_info.get('id'):
+ extra['id'] = user_info.get('id')
+ if user_info.get('user_id'):
+ extra['user_id'] = user_info.get('user_id')
+ if user_info.get('name'):
+ extra['name'] = user_info.get('name')
+ if user_info.get('bio'):
+ extra['bio'] = user_info.get('bio')
+
+ return Result.taken(extra=extra)
+ else:
+ return Result.available()
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/gaming/kick.py b/user_scanner/user_scan/gaming/kick.py
new file mode 100644
index 0000000..2b41386
--- /dev/null
+++ b/user_scanner/user_scan/gaming/kick.py
@@ -0,0 +1,35 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_kick(user):
+ api_url = f"https://kick.com/api/v2/channels/{user}"
+ show_url = f"https://kick.com/{user}"
+
+ # Kick often uses aggressive Cloudflare blocking, so we'll use a more standard browser User-Agent
+ headers = {
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
+ "Accept": "application/json",
+ }
+
+ try:
+ response = make_request(api_url, headers=headers, follow_redirects=True)
+ if response.status_code == 200:
+ data = response.json()
+
+ extra = {}
+ if user_id := data.get("id"):
+ extra["id"] = str(user_id)
+ if slug := data.get("slug"):
+ extra["slug"] = slug
+ if "is_banned" in data:
+ extra["is_banned"] = str(data["is_banned"])
+
+ return Result.taken(extra=extra, url=show_url)
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/gaming/warframemarket.py b/user_scanner/user_scan/gaming/warframemarket.py
new file mode 100644
index 0000000..cbed3d5
--- /dev/null
+++ b/user_scanner/user_scan/gaming/warframemarket.py
@@ -0,0 +1,40 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_warframemarket(user):
+ url = f"https://api.warframe.market/v2/user/{user}"
+ show_url = f"https://warframe.market/profile/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ res_data = response.json()
+ data = res_data.get('data', {})
+ if data and data.get('id'):
+ extra = {}
+ if data.get('id'):
+ extra['id'] = data.get('id')
+ if data.get('role'):
+ extra['role'] = data.get('role')
+ if data.get('ingameName'):
+ extra['ingameName'] = data.get('ingameName')
+ if data.get('reputation') is not None:
+ extra['reputation'] = data.get('reputation')
+ if data.get('masteryRank') is not None:
+ extra['masteryRank'] = data.get('masteryRank')
+ if data.get('status'):
+ extra['status'] = data.get('status')
+ if data.get('lastSeen'):
+ extra['lastSeen'] = data.get('lastSeen')
+ if data.get('platform'):
+ extra['platform'] = data.get('platform')
+
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/music/mixcloud.py b/user_scanner/user_scan/music/mixcloud.py
new file mode 100644
index 0000000..1e2f5aa
--- /dev/null
+++ b/user_scanner/user_scan/music/mixcloud.py
@@ -0,0 +1,43 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_mixcloud(user):
+ api_url = f"https://api.mixcloud.com/{user}/"
+ show_url = f"https://www.mixcloud.com/{user}/"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ try:
+ response = make_request(api_url, headers=headers, follow_redirects=True)
+ if response.status_code == 200:
+ data = response.json()
+
+ # If the user doesn't exist, mixcloud API typically returns 404,
+ # but sometimes JSON contains an error key.
+ if "error" in data:
+ return Result.available(url=show_url)
+
+ extra = {}
+ if name := data.get("name"):
+ extra["name"] = name
+ if follower_count := data.get("follower_count"):
+ extra["followers"] = str(follower_count)
+ if following_count := data.get("following_count"):
+ extra["following"] = str(following_count)
+ if pictures := data.get("pictures", {}):
+ # Try large, fallback to thumbnail or small
+ if avatar := pictures.get("large") or pictures.get("thumbnail") or pictures.get("small"):
+ extra["avatar"] = avatar
+
+ return Result.taken(extra=extra, url=show_url)
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/music/spotify.py b/user_scanner/user_scan/music/spotify.py
new file mode 100644
index 0000000..068be38
--- /dev/null
+++ b/user_scanner/user_scan/music/spotify.py
@@ -0,0 +1,50 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_spotify(user):
+ api_url = f"https://api.stats.fm/api/v1/users/{user}"
+ show_url = f"https://open.spotify.com/user/{user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ try:
+ response = make_request(api_url, headers=headers, follow_redirects=True)
+ if response.status_code == 200:
+ data = response.json()
+ item = data.get("item", {})
+
+ extra = {}
+ if name := item.get("displayName"):
+ extra["name"] = name
+ if image := item.get("image"):
+ extra["image"] = image
+ if created_at := item.get("createdAt"):
+ extra["created_at"] = created_at
+ if timezone := item.get("timezone"):
+ extra["timezone"] = timezone
+
+ # Extra profile metadata
+ profile = item.get("profile", {})
+ if bio := profile.get("bio"):
+ extra["bio"] = bio
+ if pronouns := profile.get("pronouns"):
+ extra["pronouns"] = pronouns
+
+ # Subscription info
+ if "isPro" in item:
+ extra["is_pro"] = str(item["isPro"])
+ if "isPlus" in item:
+ extra["is_plus"] = str(item["isPlus"])
+
+ return Result.taken(extra=extra, url=show_url)
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/other/calendly.py b/user_scanner/user_scan/other/calendly.py
new file mode 100644
index 0000000..b89e5e9
--- /dev/null
+++ b/user_scanner/user_scan/other/calendly.py
@@ -0,0 +1,36 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_calendly(user):
+ api_url = f"https://calendly.com/api/booking/profiles/{user}"
+ show_url = f"https://calendly.com/{user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ try:
+ response = make_request(api_url, headers=headers, follow_redirects=True)
+ if response.status_code == 200:
+ data = response.json()
+
+ extra = {}
+ if name := data.get("name"):
+ extra["name"] = name
+ if description := data.get("description"):
+ extra["description"] = description
+ if avatar := data.get("avatar_url"):
+ extra["avatar"] = avatar
+ if org := data.get("organization_uuid"):
+ extra["organization_uuid"] = org
+
+ return Result.taken(extra=extra, url=show_url)
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/other/duolingo.py b/user_scanner/user_scan/other/duolingo.py
new file mode 100644
index 0000000..104a1c5
--- /dev/null
+++ b/user_scanner/user_scan/other/duolingo.py
@@ -0,0 +1,36 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_duolingo(user):
+ url = f"https://www.duolingo.com/2017-06-30/users?username={user}"
+ show_url = f"https://www.duolingo.com/profile/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ users = data.get('users', [])
+ if users:
+ u = users[0]
+ extra = {}
+ if u.get('id'): extra['id'] = u.get('id')
+ if u.get('name'): extra['name'] = u.get('name')
+ if u.get('creationDate'): extra['created'] = u.get('creationDate')
+ if u.get('totalXp') is not None: extra['total_xp'] = u.get('totalXp')
+ if u.get('streak') is not None: extra['streak'] = u.get('streak')
+ if u.get('hasPlus'): extra['has_plus'] = u.get('hasPlus')
+
+ courses = u.get('courses', [])
+ if courses:
+ extra['courses'] = len(courses)
+ return Result.taken(extra=extra)
+ else:
+ return Result.available()
+ 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)
diff --git a/user_scanner/user_scan/other/freelancer.py b/user_scanner/user_scan/other/freelancer.py
new file mode 100644
index 0000000..7b26aee
--- /dev/null
+++ b/user_scanner/user_scan/other/freelancer.py
@@ -0,0 +1,35 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_freelancer(user):
+ url = f"https://www.freelancer.com/api/users/0.1/users?usernames%5B%5D={user}&compact=true"
+ show_url = f"https://www.freelancer.com/u/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ users = data.get('result', {}).get('users', {})
+ if users:
+ u = list(users.values())[0]
+ extra = {}
+ if u.get('id'): extra['id'] = u.get('id')
+ if u.get('username'): extra['username'] = u.get('username')
+ if u.get('display_name'): extra['display_name'] = u.get('display_name')
+ if u.get('role'): extra['role'] = u.get('role')
+ if u.get('registration_date'): extra['registration_date'] = u.get('registration_date')
+ loc = u.get('location', {})
+ country = loc.get('country', {}).get('name')
+ city = loc.get('city')
+ if country and city: extra['location'] = f"{city}, {country}"
+ return Result.taken(extra=extra)
+ else:
+ return Result.available()
+ 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)
diff --git a/user_scanner/user_scan/other/omglol.py b/user_scanner/user_scan/other/omglol.py
new file mode 100644
index 0000000..9a3ccce
--- /dev/null
+++ b/user_scanner/user_scan/other/omglol.py
@@ -0,0 +1,28 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_omglol(user):
+ url = f"https://api.omg.lol/address/{user}/info"
+ show_url = f"https://omg.lol/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ r = data.get('response', {})
+ if r and r.get('address'):
+ extra = {}
+ if r.get('address'): extra['address'] = r.get('address')
+ if r.get('message'): extra['message'] = r.get('message')
+ reg = r.get('registration', {})
+ if reg.get('date'): extra['registration_date'] = reg.get('date')
+ if reg.get('expiration'): extra['expiration'] = reg.get('expiration')
+ 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)
diff --git a/user_scanner/user_scan/other/paragraph.py b/user_scanner/user_scan/other/paragraph.py
new file mode 100644
index 0000000..2be039c
--- /dev/null
+++ b/user_scanner/user_scan/other/paragraph.py
@@ -0,0 +1,30 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_paragraph(user):
+ api_url = f"https://paragraph.com/api/blogs/@{user}"
+ show_url = f"https://paragraph.com/@{user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ resp = make_request(api_url, headers=headers, http2=True)
+ if resp.status_code == 200:
+ try:
+ data = resp.json()
+ if "id" in data:
+ extra = {}
+ if "id" in data:
+ extra["id"] = data["id"]
+ if "name" in data:
+ extra["name"] = data["name"]
+ if "createdAt" in data:
+ extra["created_at"] = data["createdAt"]
+ if "userId" in data:
+ extra["user_id"] = data["userId"]
+ return Result.taken(extra=extra, url=show_url)
+ except:
+ pass
+ return Result.available(url=show_url)
diff --git a/user_scanner/user_scan/other/statsfm.py b/user_scanner/user_scan/other/statsfm.py
new file mode 100644
index 0000000..9a3d77f
--- /dev/null
+++ b/user_scanner/user_scan/other/statsfm.py
@@ -0,0 +1,36 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_statsfm(user):
+ url = f"https://api.stats.fm/api/v1/users/{user}"
+ show_url = f"https://stats.fm/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ item = data.get('item', {})
+ if item and item.get('id'):
+ extra = {}
+ if item.get('id'):
+ extra['id'] = item.get('id')
+ if item.get('displayName'):
+ extra['displayName'] = item.get('displayName')
+ if item.get('createdAt'):
+ extra['createdAt'] = item.get('createdAt')
+ if item.get('isPlus') is not None:
+ extra['isPlus'] = item.get('isPlus')
+ if item.get('isPro') is not None:
+ extra['isPro'] = item.get('isPro')
+ if item.get('quarantined') is not None:
+ extra['quarantined'] = item.get('quarantined')
+
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/other/trello.py b/user_scanner/user_scan/other/trello.py
new file mode 100644
index 0000000..14a8621
--- /dev/null
+++ b/user_scanner/user_scan/other/trello.py
@@ -0,0 +1,33 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_trello(user):
+ url = f"https://trello.com/1/Members/{user}"
+ show_url = f"https://trello.com/{user}"
+
+ 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('fullName'):
+ extra['fullName'] = data.get('fullName')
+ if data.get('bio'):
+ extra['bio'] = data.get('bio')
+ if data.get('initials'):
+ extra['initials'] = data.get('initials')
+ if data.get('username'):
+ extra['username'] = data.get('username')
+
+ return Result.taken(extra=extra)
+ except Exception:
+ pass
+ elif response.status_code == 404 or response.status_code == 401:
+ return Result.available()
+
+ return Result.error("Unexpected response body, report it via GitHub issues.")
+
+ headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/other/vivino.py b/user_scanner/user_scan/other/vivino.py
new file mode 100644
index 0000000..6f653ec
--- /dev/null
+++ b/user_scanner/user_scan/other/vivino.py
@@ -0,0 +1,36 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_vivino(user):
+ api_url = f"https://api.vivino.com/users/{user}"
+ show_url = f"https://www.vivino.com/users/{user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ resp = make_request(api_url, headers=headers, http2=True)
+ if resp.status_code == 200:
+ try:
+ data = resp.json()
+ if "id" in data:
+ extra = {}
+ extra["id"] = data["id"]
+ if "alias" in data:
+ extra["alias"] = data["alias"]
+ if "seo_name" in data:
+ extra["seo_name"] = data["seo_name"]
+ if "is_premium" in data:
+ extra["is_premium"] = data["is_premium"]
+ if "image" in data and data["image"] and "location" in data["image"]:
+ img = data["image"]["location"]
+ if img.startswith("//"):
+ img = "https:" + img
+ extra["image"] = img
+ if "language" in data:
+ extra["language"] = data["language"]
+ return Result.taken(extra=extra, url=show_url)
+ except:
+ pass
+ return Result.available(url=show_url)
diff --git a/user_scanner/user_scan/social/dailymotion.py b/user_scanner/user_scan/social/dailymotion.py
new file mode 100644
index 0000000..20e416f
--- /dev/null
+++ b/user_scanner/user_scan/social/dailymotion.py
@@ -0,0 +1,48 @@
+from user_scanner.core.helpers import get_random_user_agent
+from user_scanner.core.orchestrator import Result, make_request
+
+def validate_dailymotion(user):
+ api_url = f"https://api.dailymotion.com/user/{user}?fields=id,username,screenname,description,avatar_720_url,cover_250_url,followers_total,following_total,videos_total,country,created_time,verified,url"
+ show_url = f"https://www.dailymotion.com/{user}"
+
+ headers = {
+ "User-Agent": get_random_user_agent(),
+ "Accept": "application/json",
+ }
+
+ try:
+ response = make_request(api_url, headers=headers, follow_redirects=True)
+ if response.status_code == 200:
+ data = response.json()
+
+ if "error" in data:
+ # Dailymotion API can return 200 with an error object
+ if data["error"].get("code") == 404:
+ return Result.available(url=show_url)
+ return Result.error(data["error"].get("message", "Unknown error"), url=show_url)
+
+ extra = {}
+ if screenname := data.get("screenname"):
+ extra["screenname"] = screenname
+ if description := data.get("description"):
+ extra["description"] = description
+ if avatar := data.get("avatar_720_url"):
+ extra["avatar"] = avatar
+ if followers := data.get("followers_total"):
+ extra["followers"] = str(followers)
+ if videos := data.get("videos_total"):
+ extra["videos"] = str(videos)
+ if country := data.get("country"):
+ extra["country"] = country
+ if verified := data.get("verified"):
+ extra["verified"] = str(verified)
+
+ return Result.taken(extra=extra, url=show_url)
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+ else:
+ return Result.error(f"Unexpected status: {response.status_code}", url=show_url)
+
+ except Exception as e:
+ return Result.error(e, url=show_url)
diff --git a/user_scanner/user_scan/social/fotka.py b/user_scanner/user_scan/social/fotka.py
new file mode 100644
index 0000000..f0b1a3f
--- /dev/null
+++ b/user_scanner/user_scan/social/fotka.py
@@ -0,0 +1,36 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_fotka(user):
+ url = f"https://api.fotka.com/v2/user/dataStatic?login={user}"
+ show_url = f"https://fotka.com/profil/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ profil = data.get('profil', {})
+ if profil and profil.get('id'):
+ extra = {}
+ if profil.get('id'):
+ extra['id'] = profil.get('id')
+ if profil.get('sex'):
+ extra['sex'] = profil.get('sex')
+ if profil.get('age'):
+ extra['age'] = profil.get('age')
+ if profil.get('city'):
+ extra['city'] = profil.get('city')
+ if profil.get('creationTS'):
+ extra['creationTS'] = profil.get('creationTS')
+ if profil.get('photosNumber') is not None:
+ extra['photosNumber'] = profil.get('photosNumber')
+
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/social/imgur.py b/user_scanner/user_scan/social/imgur.py
new file mode 100644
index 0000000..293800e
--- /dev/null
+++ b/user_scanner/user_scan/social/imgur.py
@@ -0,0 +1,37 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_imgur(user):
+ url = f"https://api.imgur.com/account/v1/accounts/{user}?client_id=546c25a59c58ad7&include=trophies%2Cmedallions"
+ show_url = f"https://imgur.com/user/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('id'):
+ extra = {}
+ if data.get('id'):
+ extra['id'] = data.get('id')
+ if data.get('bio'):
+ extra['bio'] = data.get('bio')
+ if data.get('reputation_count') is not None:
+ extra['reputation'] = data.get('reputation_count')
+ if data.get('reputation_name'):
+ extra['reputation_name'] = data.get('reputation_name')
+ if data.get('created_at'):
+ extra['created_at'] = data.get('created_at')
+
+ trophies = data.get('trophies', [])
+ if trophies:
+ extra['trophies'] = ", ".join(t.get('name', '') for t in trophies if t.get('name'))
+
+ return Result.taken(extra=extra)
+ except Exception:
+ pass
+ elif response.status_code == 404 or response.status_code == 400:
+ return Result.available()
+
+ return Result.error("Unexpected response body, report it via GitHub issues.")
+
+ headers = {"Accept": "application/json"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/social/keybase.py b/user_scanner/user_scan/social/keybase.py
new file mode 100644
index 0000000..dbd385a
--- /dev/null
+++ b/user_scanner/user_scan/social/keybase.py
@@ -0,0 +1,48 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_keybase(user):
+ url = f"https://keybase.io/_/api/1.0/user/lookup.json?usernames={user}"
+ show_url = f"https://keybase.io/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ them = data.get('them', [])
+ if them and them[0] is not None:
+ user_data = them[0]
+ extra = {}
+
+ basics = user_data.get('basics', {})
+ if basics.get('ctime'):
+ extra['created_at'] = basics.get('ctime')
+ if basics.get('id_version'):
+ extra['id_version'] = basics.get('id_version')
+
+ profile = user_data.get('profile', {})
+ if profile.get('full_name'):
+ extra['full_name'] = profile.get('full_name')
+ if profile.get('location'):
+ extra['location'] = profile.get('location')
+ if profile.get('bio'):
+ extra['bio'] = profile.get('bio')
+
+ proofs = user_data.get('proofs_summary', {}).get('all', [])
+ if proofs:
+ linked = []
+ for proof in proofs:
+ if proof.get('nametag'):
+ linked.append(f"{proof.get('proof_type')}:{proof.get('nametag')}")
+ if linked:
+ extra['proofs'] = ", ".join(linked)
+
+ return Result.taken(extra=extra)
+ else:
+ return Result.available()
+ except Exception:
+ pass
+
+ return Result.error("Unexpected response body, report it via GitHub issues.")
+
+ headers = {"Accept": "application/json"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/social/picsart.py b/user_scanner/user_scan/social/picsart.py
new file mode 100644
index 0000000..cbd501b
--- /dev/null
+++ b/user_scanner/user_scan/social/picsart.py
@@ -0,0 +1,37 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_picsart(user):
+ url = f"https://api.picsart.com/users/show/{user}.json"
+ show_url = f"https://picsart.com/u/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ if data.get('status') == 'success':
+ extra = {}
+ if data.get('id'):
+ extra['id'] = data.get('id')
+ if data.get('name'):
+ extra['name'] = data.get('name')
+ if data.get('status_message'):
+ extra['status_message'] = data.get('status_message')
+ 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('likes_count') is not None:
+ extra['likes'] = data.get('likes_count')
+ if data.get('photos_count') is not None:
+ extra['photos'] = data.get('photos_count')
+
+ 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/social/pr0gramm.py b/user_scanner/user_scan/social/pr0gramm.py
new file mode 100644
index 0000000..78bc441
--- /dev/null
+++ b/user_scanner/user_scan/social/pr0gramm.py
@@ -0,0 +1,31 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_pr0gramm(user):
+ url = f"https://pr0gramm.com/api/profile/info?name={user}"
+ show_url = f"https://pr0gramm.com/user/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ u = data.get('user', {})
+ if u and u.get('id'):
+ extra = {}
+ if u.get('id'): extra['id'] = u.get('id')
+ if u.get('name'): extra['name'] = u.get('name')
+ if u.get('registered'): extra['registered'] = u.get('registered')
+ if u.get('score') is not None: extra['score'] = u.get('score')
+ if u.get('mark') is not None: extra['mark'] = u.get('mark')
+ if data.get('commentCount') is not None: extra['comments'] = data.get('commentCount')
+ if data.get('uploadCount') is not None: extra['uploads'] = data.get('uploadCount')
+ if data.get('tagCount') is not None: extra['tags'] = data.get('tagCount')
+ 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)
diff --git a/user_scanner/user_scan/social/px500.py b/user_scanner/user_scan/social/px500.py
new file mode 100644
index 0000000..3f38704
--- /dev/null
+++ b/user_scanner/user_scan/social/px500.py
@@ -0,0 +1,46 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_500px(user):
+ # Notice we pass the variables in URL encoded form, matching the query we inspected
+ url = f"https://api.500px.com/graphql?query=query%28%24username%3AString%21%29%7BuserByUsername%28username%3A%24username%29%7Bid%20legacyId%20username%20displayName%20firstName%20lastName%20registeredAt%20userProfile%7Bfirstname%20lastname%20about%20country%20city%20state%7DsocialMedia%7Bwebsite%20twitter%20facebook%20instagram%7D%7D%7D&variables=%7B%22username%22%3A%22{user}%22%7D"
+ show_url = f"https://500px.com/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json().get('data', {})
+ user_data = data.get('userByUsername')
+ if user_data:
+ extra = {}
+ if user_data.get('legacyId'):
+ extra['id'] = user_data.get('legacyId')
+ if user_data.get('displayName'):
+ extra['displayName'] = user_data.get('displayName')
+ if user_data.get('registeredAt'):
+ extra['registeredAt'] = user_data.get('registeredAt')
+
+ profile = user_data.get('userProfile', {})
+ if profile.get('country'):
+ extra['country'] = profile.get('country')
+ if profile.get('city'):
+ extra['city'] = profile.get('city')
+ if profile.get('about'):
+ extra['about'] = profile.get('about')
+
+ social = user_data.get('socialMedia', {})
+ for net in ['website', 'twitter', 'facebook', 'instagram']:
+ if social.get(net):
+ extra[net] = social.get(net)
+
+ return Result.taken(extra=extra)
+ else:
+ return Result.available()
+ 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"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/social/sportstracker.py b/user_scanner/user_scan/social/sportstracker.py
new file mode 100644
index 0000000..8f0f5b7
--- /dev/null
+++ b/user_scanner/user_scan/social/sportstracker.py
@@ -0,0 +1,40 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_sportstracker(user):
+ url = f"https://api.sports-tracker.com/apiserver/v1/user/name/{user}"
+ show_url = f"https://www.sports-tracker.com/view_profile/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ payload = data.get('payload', {})
+ if payload and payload.get('username'):
+ extra = {}
+ if payload.get('uuid'):
+ extra['uuid'] = payload.get('uuid')
+ if payload.get('realName'):
+ extra['realName'] = payload.get('realName')
+ if payload.get('country'):
+ extra['country'] = payload.get('country')
+ if payload.get('city'):
+ extra['city'] = payload.get('city')
+ if payload.get('gender'):
+ extra['gender'] = payload.get('gender')
+ if payload.get('createdDate'):
+ extra['createdDate'] = payload.get('createdDate')
+ if payload.get('followersCount') is not None:
+ extra['followers'] = payload.get('followersCount')
+ if payload.get('followingCount') is not None:
+ extra['following'] = payload.get('followingCount')
+
+ return Result.taken(extra=extra)
+ except Exception:
+ pass
+ elif response.status_code == 404 or "Not Found" in response.text:
+ return Result.available()
+
+ return Result.error("Unexpected response body, report it via GitHub issues.")
+
+ headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}
+ return generic_validate(url, process, show_url=show_url, headers=headers)
diff --git a/user_scanner/user_scan/social/warpcast.py b/user_scanner/user_scan/social/warpcast.py
new file mode 100644
index 0000000..03e0a63
--- /dev/null
+++ b/user_scanner/user_scan/social/warpcast.py
@@ -0,0 +1,34 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+def validate_warpcast(user):
+ url = f"https://client.warpcast.com/v2/user-by-username?username={user}"
+ show_url = f"https://warpcast.com/{user}"
+
+ def process(response):
+ if response.status_code == 200:
+ try:
+ data = response.json()
+ result = data.get('result', {}).get('user', {})
+ if result:
+ extra = {}
+ if result.get('fid'): extra['fid'] = result.get('fid')
+ if result.get('displayName'): extra['displayname'] = result.get('displayName')
+ profile = result.get('profile', {})
+ bio = profile.get('bio', {})
+ if bio.get('text'): extra['bio'] = bio.get('text')
+ loc = profile.get('location', {})
+ if loc.get('description'): extra['location'] = loc.get('description')
+ if result.get('accountLevel'): extra['accountLevel'] = result.get('accountLevel')
+ if result.get('followerCount'): extra['followers'] = result.get('followerCount')
+ if result.get('followingCount'): extra['following'] = result.get('followingCount')
+
+ return Result.taken(extra=extra)
+ except Exception:
+ pass
+ elif response.status_code in [400, 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)