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.

mv: Move all the username validations in a different directory

kaifcodecbef86b3de776
diff --git a/user_scanner/user_scan/community/__init__.py b/user_scanner/user_scan/community/__init__.py
new file mode 100644
index 0000000..3bb216b
--- /dev/null
+++ b/user_scanner/user_scan/community/__init__.py
@@ -0,0 +1 @@
+# community
diff --git a/user_scanner/user_scan/community/coderlegion.py b/user_scanner/user_scan/community/coderlegion.py
new file mode 100644
index 0000000..2a9d163
--- /dev/null
+++ b/user_scanner/user_scan/community/coderlegion.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_coderlegion(user):
+ url = f"https://coderlegion.com/user/{user}"
+
+ return status_validate(url, 404, 200, timeout=15.0)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_coderlegion(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/community/hackernews.py b/user_scanner/user_scan/community/hackernews.py
new file mode 100644
index 0000000..3341513
--- /dev/null
+++ b/user_scanner/user_scan/community/hackernews.py
@@ -0,0 +1,33 @@
+import re
+from user_scanner.core.orchestrator import generic_validate, Result
+
+
+def validate_hackernews(user: str) -> Result:
+ if not (2 <= len(user) <= 15):
+ return Result.error("Length must be 2-15 characters")
+
+ if not re.match(r'^[a-zA-Z0-9_-]+$', user):
+ return Result.error("Only use letters, numbers, underscores, and hyphens")
+
+ url = f"https://news.ycombinator.com/user?id={user}"
+
+ def process(response):
+ if "No such user." in response.text:
+ return Result.available()
+ if f"profile: {user}" in response.text.lower() or "created:" in response.text:
+ return Result.taken()
+ return Result.error("Unexpected response structure")
+
+ return generic_validate(url, process, timeout=3.0, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_hackernews(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/community/stackoverflow.py b/user_scanner/user_scan/community/stackoverflow.py
new file mode 100644
index 0000000..e14fa60
--- /dev/null
+++ b/user_scanner/user_scan/community/stackoverflow.py
@@ -0,0 +1,35 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+def validate_stackoverflow(user: str) -> Result:
+ url = f"https://stackoverflow.com/users/filter?search={user}"
+
+ def process(response):
+ if response.status_code == 200:
+ text = response.text
+
+ if "No users matched your search." in text:
+ return Result.available()
+
+ pattern = f'>{user}<'
+ if pattern in text:
+ return Result.taken()
+
+ return Result.available()
+
+ return Result.error("Unexpected status code from Stack Overflow")
+
+ return generic_validate(url, process)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_stackoverflow(user)
+
+ if result == Result.available():
+ print("Available!")
+ elif result == Result.taken():
+ print("Unavailable!")
+ else:
+ msg = result.get_reason()
+ print("Error occurred!" + msg)
diff --git a/user_scanner/user_scan/creator/__init__.py b/user_scanner/user_scan/creator/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/user_scanner/user_scan/creator/devto.py b/user_scanner/user_scan/creator/devto.py
new file mode 100644
index 0000000..cf55174
--- /dev/null
+++ b/user_scanner/user_scan/creator/devto.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_devto(user):
+ url = f"https://dev.to/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_devto(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/creator/hashnode.py b/user_scanner/user_scan/creator/hashnode.py
new file mode 100644
index 0000000..1098486
--- /dev/null
+++ b/user_scanner/user_scan/creator/hashnode.py
@@ -0,0 +1,47 @@
+from user_scanner.core.result import Result
+from user_scanner.core.orchestrator import generic_validate
+
+
+def validate_hashnode(user):
+ url = "https://hashnode.com/utility/ajax/check-username"
+
+ payload = {
+ "username": user,
+ "name": "Dummy Dummy"
+ }
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'Accept': "application/json",
+ 'Content-Type': "application/json",
+ 'Origin': "https://hashnode.com",
+ 'Referer': "https://hashnode.com/signup",
+ }
+
+ def process(response):
+ if response.status_code == 200:
+ data = response.json()
+
+ if 'status' in data:
+ if data['status'] == 1:
+ return Result.available()
+ elif data['status'] == 0:
+ return Result.taken()
+
+ return Result.error("Status not found")
+
+ else:
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process, method="POST", json=payload, headers=headers, timeout=3.0)
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_hashnode(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/creator/itch_io.py b/user_scanner/user_scan/creator/itch_io.py
new file mode 100644
index 0000000..9f43494
--- /dev/null
+++ b/user_scanner/user_scan/creator/itch_io.py
@@ -0,0 +1,30 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_itch_io(user: str) -> Result:
+ if not (2 <= len(user) <= 25):
+ return Result.error("Length must be 2-25 characters.")
+
+ if not re.match(r'^[a-z0-9_-]+$', user):
+
+ if re.search(r'[A-Z]', user):
+ return Result.error("Use lowercase letters only.")
+
+ return Result.error("Only use lowercase letters, numbers, underscores, and hyphens.")
+
+ url = f"https://itch.io/profile/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_itch_io(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/creator/kaggle.py b/user_scanner/user_scan/creator/kaggle.py
new file mode 100644
index 0000000..b52a109
--- /dev/null
+++ b/user_scanner/user_scan/creator/kaggle.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_kaggle(user):
+ url = f"https://www.kaggle.com/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_kaggle(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/creator/medium.py b/user_scanner/user_scan/creator/medium.py
new file mode 100644
index 0000000..1f48e3a
--- /dev/null
+++ b/user_scanner/user_scan/creator/medium.py
@@ -0,0 +1,48 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_medium(user):
+ url = f"https://medium.com/@{user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "identity",
+ 'upgrade-insecure-requests': "1",
+ 'sec-fetch-site': "none",
+ 'sec-fetch-mode': "navigate",
+ 'sec-fetch-user': "?1",
+ 'sec-fetch-dest': "document",
+ 'sec-ch-ua': "\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\"",
+ 'sec-ch-ua-mobile': "?0",
+ 'sec-ch-ua-platform': "\"Linux\"",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+ def process(response):
+ if response.status_code == 200:
+ html_text = response.text
+
+ username_tag = f'property="profile:username" content="{user}"'
+
+ if username_tag in html_text:
+ return Result.taken()
+ else:
+ return Result.available()
+ return Result.error()
+
+ return generic_validate(url, process, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_medium(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/creator/patreon.py b/user_scanner/user_scan/creator/patreon.py
new file mode 100644
index 0000000..a7714c9
--- /dev/null
+++ b/user_scanner/user_scan/creator/patreon.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_patreon(user):
+ url = f"https://www.patreon.com/{user}"
+
+ return status_validate(url, 404, 200, timeout=15.0, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_patreon(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/creator/producthunt.py b/user_scanner/user_scan/creator/producthunt.py
new file mode 100644
index 0000000..9a7e96b
--- /dev/null
+++ b/user_scanner/user_scan/creator/producthunt.py
@@ -0,0 +1,47 @@
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_youtube(user) -> Result:
+ url = f"https://m.youtube.com/@{user}"
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "identity",
+ 'sec-ch-dpr': "2.75",
+ 'sec-ch-viewport-width': "980",
+ 'sec-ch-ua': "\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\"",
+ 'sec-ch-ua-mobile': "?1",
+ 'sec-ch-ua-full-version': "\"143.0.7499.52\"",
+ 'sec-ch-ua-arch': "\"\"",
+ 'sec-ch-ua-platform': "\"Android\"",
+ 'sec-ch-ua-platform-version': "\"15.0.0\"",
+ 'sec-ch-ua-bitness': "\"\"",
+ 'sec-ch-ua-wow64': "?0",
+ 'sec-ch-ua-full-version-list': "\"Google Chrome\";v=\"143.0.7499.52\", \"Chromium\";v=\"143.0.7499.52\", \"Not A(Brand\";v=\"24.0.0.0\"",
+ 'sec-ch-ua-form-factors': "\"Mobile\"",
+ 'upgrade-insecure-requests': "1",
+ 'x-browser-channel': "stable",
+ 'x-browser-year': "2025",
+ 'x-browser-copyright': "Copyright 2025 Google LLC. All Rights reserved.",
+ 'sec-fetch-site': "none",
+ 'sec-fetch-mode': "navigate",
+ 'sec-fetch-user': "?1",
+ 'sec-fetch-dest': "document",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+ return status_validate(url, 404, 200, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_youtube(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ reason = result.get_reason()
+ print(f"Error occurred! Reason: {reason}")
diff --git a/user_scanner/user_scan/creator/substack.py b/user_scanner/user_scan/creator/substack.py
new file mode 100644
index 0000000..2b559de
--- /dev/null
+++ b/user_scanner/user_scan/creator/substack.py
@@ -0,0 +1,36 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_substack(user: str) -> Result:
+ if not (4 <= len(user) <= 32):
+ return Result.error("Length must be 4-32 characters")
+
+ if not re.match(r'^[a-z0-9]+$', user):
+ if re.search(r'[A-Z]', user):
+ return Result.error("Use lowercase letters only")
+ return Result.error("Usernames can only contain lowercase letters and numbers")
+
+ url = f"https://{user}.substack.com"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "identity",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+ return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_substack(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/creator/twitch.py b/user_scanner/user_scan/creator/twitch.py
new file mode 100644
index 0000000..d5036d5
--- /dev/null
+++ b/user_scanner/user_scan/creator/twitch.py
@@ -0,0 +1,83 @@
+import json
+import re
+import httpx
+from user_scanner.core.orchestrator import generic_validate, Result
+
+
+def validate_twitch(user: str) -> Result:
+ if not (4 <= len(user) <= 25):
+ return Result.error("Username must be between 4 and 25 characters long")
+
+ if not re.match(r"^[a-zA-Z0-9]+$", user):
+ return Result.error("Username can only contain alphanumeric characters (a-z, 0-9)")
+
+ url = "https://gql.twitch.tv/gql"
+
+ payload = [
+ {
+ "operationName": "ChannelLayout",
+ "variables": {
+ "channelLogin": user,
+ "includeIsDJ": True
+ },
+ "extensions": {
+ "persistedQuery": {
+ "version": 1,
+ "sha256Hash": "4c361fa1874dc8f6a49e62b56aa1032eccb31311bdb653918a924f96a8b2d1a6"
+ }
+ }
+ }
+ ]
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'Accept-Encoding': "identity",
+ 'Content-Type': "application/json",
+ 'sec-ch-ua-platform': "\"Android\"",
+ 'accept-language': "en-US",
+ 'client-id': "kimne78kx3ncx6brgo4mv6wki5h1ko",
+ 'client-version': "7bb0442d-1175-4ab5-9d32-b1f370536cbf",
+ 'origin': "https://m.twitch.tv",
+ 'referer': "https://m.twitch.tv/",
+ }
+
+ def process(response: httpx.Response) -> Result:
+ if response.status_code != 200:
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ try:
+ data = response.json()
+ except json.JSONDecodeError as e:
+ return Result.error(f"Failed to decode JSON response: {e}")
+
+ user_data = data[0].get('data', {}).get('user', {})
+ typename = user_data.get('__typename')
+
+ if typename == "User":
+ return Result.taken()
+ elif typename == "UserDoesNotExist":
+ return Result.available()
+ else:
+ return Result.error("Unexpected GraphQL response structure or type.")
+
+ return generic_validate(
+ url,
+ process,
+ headers=headers,
+ method='POST',
+ content=json.dumps(payload),
+ follow_redirects=False
+ )
+
+
+if __name__ == "__main__":
+ user = input("Twitch Username?: ").strip()
+ result = validate_twitch(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ reason = result.get_reason()
+ print(f"Error occurred! Reason: {reason}")
diff --git a/user_scanner/user_scan/dev/__init__.py b/user_scanner/user_scan/dev/__init__.py
new file mode 100644
index 0000000..06e9672
--- /dev/null
+++ b/user_scanner/user_scan/dev/__init__.py
@@ -0,0 +1 @@
+# tech
diff --git a/user_scanner/user_scan/dev/bitbucket.py b/user_scanner/user_scan/dev/bitbucket.py
new file mode 100644
index 0000000..e56d313
--- /dev/null
+++ b/user_scanner/user_scan/dev/bitbucket.py
@@ -0,0 +1,34 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_bitbucket(user: str) -> Result:
+ if not (1 <= len(user) <= 30):
+ return Result.error("Length must be 1-30 characters.")
+
+ if not re.match(r'^[a-z0-9][a-z0-9_-]*$', user):
+
+ if re.search(r'[A-Z]', user):
+ return Result.error("Use lowercase letters only.")
+
+ return Result.error("Only use lowercase letters, numbers, hyphens, and underscores.")
+
+ url = f"https://bitbucket.org/{user}/"
+
+ return status_validate(url, 404, [200, 302], follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_bitbucket(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
+
+
+
+
diff --git a/user_scanner/user_scan/dev/codeberg.py b/user_scanner/user_scan/dev/codeberg.py
new file mode 100644
index 0000000..d2f30d1
--- /dev/null
+++ b/user_scanner/user_scan/dev/codeberg.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_codeberg(user):
+ url = f"https://codeberg.org/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_codeberg(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/dev/cratesio.py b/user_scanner/user_scan/dev/cratesio.py
new file mode 100644
index 0000000..6376864
--- /dev/null
+++ b/user_scanner/user_scan/dev/cratesio.py
@@ -0,0 +1,26 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_cratesio(user):
+ url = f"https://crates.io/api/v1/users/{user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'Accept': "application/json",
+ 'Referer': "https://crates.io/",
+ 'sec-fetch-mode': "cors",
+ }
+
+ return status_validate(url, 404, 200, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_cratesio(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/dev/dockerhub.py b/user_scanner/user_scan/dev/dockerhub.py
new file mode 100644
index 0000000..bdd5316
--- /dev/null
+++ b/user_scanner/user_scan/dev/dockerhub.py
@@ -0,0 +1,24 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_dockerhub(user):
+ url = f"https://hub.docker.com/v2/users/{user}/"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ 'Accept': "application/json",
+ }
+
+ return status_validate(url, 404, 200, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_dockerhub(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/dev/github.py b/user_scanner/user_scan/dev/github.py
new file mode 100644
index 0000000..3dac910
--- /dev/null
+++ b/user_scanner/user_scan/dev/github.py
@@ -0,0 +1,50 @@
+from user_scanner.core.orchestrator import generic_validate, Result
+
+
+def validate_github(user):
+ url = f"https://github.com/signup_check/username?value={user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
+ '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"
+ }
+
+ 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:
+ return Result.available()
+
+ 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 Result.error("Unexpected GitHub response report it via issues")
+
+ return generic_validate(url, process, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_github(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/dev/gitlab.py b/user_scanner/user_scan/dev/gitlab.py
new file mode 100644
index 0000000..d5346d0
--- /dev/null
+++ b/user_scanner/user_scan/dev/gitlab.py
@@ -0,0 +1,40 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_gitlab(user):
+ url = f"https://gitlab.com/users/{user}/exists"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ '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:
+ return Result.available()
+ # UNAVAILABLE (return 0) if "exists": false
+ elif data['exists'] is True:
+ return Result.taken()
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_gitlab(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/dev/huggingface.py b/user_scanner/user_scan/dev/huggingface.py
new file mode 100644
index 0000000..f2fe04c
--- /dev/null
+++ b/user_scanner/user_scan/dev/huggingface.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_huggingface(user):
+ url = f"https://huggingface.co/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_huggingface(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/launchpad.py b/user_scanner/user_scan/dev/launchpad.py
new file mode 100644
index 0000000..49af8c0
--- /dev/null
+++ b/user_scanner/user_scan/dev/launchpad.py
@@ -0,0 +1,26 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_launchpad(user):
+ url = f"https://launchpad.net/~{user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9",
+ 'Accept-Encoding': "gzip, deflate, br, zstd",
+ 'Upgrade-Insecure-Requests': "1",
+ }
+
+ return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_launchpad(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/dev/leetcode.py b/user_scanner/user_scan/dev/leetcode.py
new file mode 100644
index 0000000..128903a
--- /dev/null
+++ b/user_scanner/user_scan/dev/leetcode.py
@@ -0,0 +1,35 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_leetcode(user: str) -> Result:
+ if not (3 <= len(user) <= 30):
+ return Result.error("Length must be between 3 and 30 characters")
+
+ if not re.match(r'^[a-zA-Z0-9._-]+$', user):
+ return Result.error("Can only use letters, numbers, underscores, periods, or hyphens")
+
+ url = f"https://leetcode.com/u/{user}/"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "identity",
+ 'upgrade-insecure-requests': "1",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+ return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_leetcode(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/dev/npmjs.py b/user_scanner/user_scan/dev/npmjs.py
new file mode 100644
index 0000000..c39fc04
--- /dev/null
+++ b/user_scanner/user_scan/dev/npmjs.py
@@ -0,0 +1,27 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_npmjs(user):
+ if re.match(r'^[^a-zA-Z0-9_-]', user):
+ return Result.error("Username cannot start with a period")
+
+ if re.search(r'[A-Z]', user):
+ return Result.error("Username cannot contain uppercase letters.")
+
+ url = f"https://www.npmjs.com/~{user}"
+
+
+ return status_validate(url, 404, 200, timeout=3.0, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_npmjs(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result}")
diff --git a/user_scanner/user_scan/dev/replit.py b/user_scanner/user_scan/dev/replit.py
new file mode 100644
index 0000000..5a15d1c
--- /dev/null
+++ b/user_scanner/user_scan/dev/replit.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_replit(user):
+ url = f"https://replit.com/@{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_replit(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/dev/sourceforge.py b/user_scanner/user_scan/dev/sourceforge.py
new file mode 100644
index 0000000..9ba2e1b
--- /dev/null
+++ b/user_scanner/user_scan/dev/sourceforge.py
@@ -0,0 +1,30 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_sourceforge(user: str) -> Result:
+ if not (3 <= len(user) <= 30):
+ return Result.error("Length must be 3-30 characters.")
+
+ if not re.match(r'^[a-z0-9-]+$', user):
+
+ if re.search(r'[A-Z]', user):
+ return Result.error("Use lowercase letters only.")
+
+ return Result.error("Only use lowercase letters, numbers, and dashes.")
+
+ url = f"https://sourceforge.net/u/{user}/"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_sourceforge(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/donation/__init__.py b/user_scanner/user_scan/donation/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/user_scanner/user_scan/donation/buymeacoffee.py b/user_scanner/user_scan/donation/buymeacoffee.py
new file mode 100644
index 0000000..239fc9e
--- /dev/null
+++ b/user_scanner/user_scan/donation/buymeacoffee.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_buymeacoffee(user):
+ url = f"https://buymeacoffee.com/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_buymeacoffee(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/donation/liberapay.py b/user_scanner/user_scan/donation/liberapay.py
new file mode 100644
index 0000000..62e2f0d
--- /dev/null
+++ b/user_scanner/user_scan/donation/liberapay.py
@@ -0,0 +1,36 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_liberapay(user):
+ url = f"https://en.liberapay.com/{user}"
+
+ headers = {
+ "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
+ "accept-language": "en-Us,pt;q=0.6",
+ "cache-control": "no-cache",
+ "pragma": "no-cache",
+ "priority": "u=0, i",
+ "sec-ch-ua": '"Chromium";v="142", "Brave";v="142", "Not_A Brand";v="99"',
+ "sec-ch-ua-mobile": "?0",
+ "sec-ch-ua-platform": '"Windows"',
+ "sec-fetch-dest": "document",
+ "sec-fetch-mode": "navigate",
+ "sec-fetch-site": "none",
+ "sec-fetch-user": "?1",
+ "sec-gpc": "1",
+ "upgrade-insecure-requests": "1",
+ }
+
+ return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_liberapay(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/gaming/__init__.py b/user_scanner/user_scan/gaming/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/user_scanner/user_scan/gaming/chess_com.py b/user_scanner/user_scan/gaming/chess_com.py
new file mode 100644
index 0000000..e170d6b
--- /dev/null
+++ b/user_scanner/user_scan/gaming/chess_com.py
@@ -0,0 +1,38 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_chess_com(user):
+ url = f"https://www.chess.com/callback/user/valid?username={user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
+ 'Accept': "application/json, text/plain, */*",
+ 'Accept-Encoding': "identity",
+ 'Accept-Language': "en-US,en;q=0.9",
+ }
+
+ def process(response):
+ if response.status_code == 200:
+ data = response.json()
+ if data.get('valid') is True:
+ # 'valid': true means the username is NOT taken
+ return Result.available()
+ elif data.get('valid') is False:
+ # 'valid': false means the username IS taken
+ return Result.taken()
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_chess_com(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/gaming/lichess.py b/user_scanner/user_scan/gaming/lichess.py
new file mode 100644
index 0000000..84902b2
--- /dev/null
+++ b/user_scanner/user_scan/gaming/lichess.py
@@ -0,0 +1,40 @@
+import re
+from user_scanner.core.orchestrator import generic_validate, Result
+
+
+def validate_lichess(user: str) -> Result:
+ if not (2 <= len(user) <= 20):
+ return Result.error("Length must be 2-20 characters")
+
+ if not re.match(r'^[a-zA-Z0-9_-]+$', user):
+ return Result.error("Usernames can only contain letters, numbers, underscores, and hyphens")
+
+ if re.search(r'[_-]{2,}', user):
+ return Result.error("Username cannot contain consecutive underscores or hyphens")
+
+ if not re.match(r'.*[a-zA-Z0-9]$', user):
+ return Result.error("Username must end with a letter or a number")
+
+ url = f"https://lichess.org/api/player/autocomplete?term={user}&exists=1"
+
+ def process(response):
+ res_text = response.text.strip().lower()
+ if res_text == "true":
+ return Result.taken()
+ if res_text == "false":
+ return Result.available()
+ return Result.error("Unexpected error, report it via github issues")
+
+ return generic_validate(url, process, timeout=3.0)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_lichess(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/gaming/minecraft.py b/user_scanner/user_scan/gaming/minecraft.py
new file mode 100644
index 0000000..8976d7d
--- /dev/null
+++ b/user_scanner/user_scan/gaming/minecraft.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_minecraft(user):
+ url = f"https://api.mojang.com/minecraft/profile/lookup/name/{user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_minecraft(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/gaming/monkeytype.py b/user_scanner/user_scan/gaming/monkeytype.py
new file mode 100644
index 0000000..34a9c4e
--- /dev/null
+++ b/user_scanner/user_scan/gaming/monkeytype.py
@@ -0,0 +1,56 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+from urllib.parse import quote
+
+def validate_monkeytype(user: str) -> Result:
+ safe_user = quote(user, safe="")
+ url = f"https://api.monkeytype.com/users/checkName/{safe_user}"
+
+ headers = {
+ "User-Agent": (
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
+ "Chrome/128.0.0.0 Safari/537.36"
+ ),
+ "Accept": "application/json, text/plain, */*",
+ "Accept-Encoding": "identity",
+ "Accept-Language": "en-US,en;q=0.9",
+ }
+
+ def process(response):
+ if response.status_code == 200:
+ data = response.json()
+ # Expected shape:
+ # { "message": "string", "data": { "available": true/false } }
+ payload = data.get("data", {})
+ available = payload.get("available")
+
+ if available is True:
+ return Result.available()
+ elif available is False:
+ return Result.taken()
+
+ # Surface Monkeytype validation errors (e.g. special characters)
+ try:
+ data = response.json()
+ errors = data.get("validationErrors")
+ if errors:
+ return Result.error("; ".join(errors))
+ except Exception:
+ pass
+
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_monkeytype(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/gaming/osu.py b/user_scanner/user_scan/gaming/osu.py
new file mode 100644
index 0000000..e1c937c
--- /dev/null
+++ b/user_scanner/user_scan/gaming/osu.py
@@ -0,0 +1,19 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_osu(user):
+ url = f"https://osu.ppy.sh/users/{user}"
+
+ return status_validate(url, 404, [200, 302], follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_osu(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/gaming/roblox.py b/user_scanner/user_scan/gaming/roblox.py
new file mode 100644
index 0000000..1f605dd
--- /dev/null
+++ b/user_scanner/user_scan/gaming/roblox.py
@@ -0,0 +1,53 @@
+from user_scanner.core.orchestrator import generic_validate, status_validate
+from user_scanner.core.result import Result
+
+
+def validate_roblox(user: str) -> Result:
+ # official api
+ url = f"https://users.roblox.com/v1/users/search?keyword={user}&limit=10"
+
+ def process(response):
+ search_results = response.json() # api response
+
+ if response.status_code == 429:
+ return Result.error("Too many requests")
+
+ if response.status_code == 400:
+ # Api states theres always an error
+ error = search_results["errors"][0]
+ if error["code"] == 6:
+ return Result.error("Username is too short")
+ if error["code"] == 5:
+ return Result.error("Username was filtered")
+ # Shouldn't be able to reach this
+ return Result.error("Invalid username")
+
+ # iterates through the entries in the search results
+ for entry in search_results["data"]:
+ # .lower() so casing from the API doesn't matter
+ if entry["name"].lower() == user.lower(): # if a username matches the user
+ return Result.taken()
+ return Result.available()
+
+ # First try: Using roblox's API
+ result = generic_validate(url, process, follow_redirects=True)
+
+ if result.get_reason() != "Too many requests":
+ return result
+
+ # If rate limited, uses a simple status validation
+ url = f"https://www.roblox.com/user.aspx?username={user}"
+
+ return status_validate(url, 404, [200, 302], follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_roblox(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/gaming/steam.py b/user_scanner/user_scan/gaming/steam.py
new file mode 100644
index 0000000..34685e2
--- /dev/null
+++ b/user_scanner/user_scan/gaming/steam.py
@@ -0,0 +1,29 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_steam(user):
+ url = f"https://steamcommunity.com/id/{user}/"
+
+ def process(response):
+ if response.status_code == 200:
+ if "Error</title>" in response.text:
+ return Result.available()
+ else:
+ return Result.taken()
+
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_steam(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occurred!")
diff --git a/user_scanner/user_scan/social/__init__.py b/user_scanner/user_scan/social/__init__.py
new file mode 100644
index 0000000..241c8dd
--- /dev/null
+++ b/user_scanner/user_scan/social/__init__.py
@@ -0,0 +1 @@
+# social
diff --git a/user_scanner/user_scan/social/bluesky.py b/user_scanner/user_scan/social/bluesky.py
new file mode 100644
index 0000000..b630feb
--- /dev/null
+++ b/user_scanner/user_scan/social/bluesky.py
@@ -0,0 +1,54 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_bluesky(user):
+ handle = user if user.endswith('.bsky.social') else f"{user}.bsky.social"
+ url = "https://bsky.social/xrpc/com.atproto.temp.checkHandleAvailability"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'Accept-Encoding': "gzip",
+ 'atproto-accept-labelers': "did:plc:ar7c4by46qjdydhdevvrndac;redact",
+ 'sec-ch-ua-platform': "\"Android\"",
+ 'sec-ch-ua': "\"Google Chrome\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",
+ 'sec-ch-ua-mobile': "?1",
+ 'origin': "https://bsky.app",
+ 'sec-fetch-site': "cross-site",
+ 'sec-fetch-mode': "cors",
+ 'sec-fetch-dest': "empty",
+ 'referer': "https://bsky.app/",
+ 'accept-language': "en-US,en;q=0.9",
+ }
+
+ params = {
+ 'handle': handle,
+ }
+
+ def process(response):
+ if response.status_code == 200:
+ data = response.json()
+ result_type = data.get('result', {}).get('$type')
+
+ if result_type == "com.atproto.temp.checkHandleAvailability#resultAvailable":
+ return Result.available()
+ elif result_type == "com.atproto.temp.checkHandleAvailability#resultUnavailable":
+ return Result.taken()
+ elif response.status_code == 400:
+ return Result.error("Username can only contain letters, numbers, hyphens (no leading/trailing)")
+
+ return Result.error("Invalid status code!")
+
+ return generic_validate(url, process, headers=headers, params=params, timeout=15.0)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_bluesky(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/discord.py b/user_scanner/user_scan/social/discord.py
new file mode 100644
index 0000000..ef3ea05
--- /dev/null
+++ b/user_scanner/user_scan/social/discord.py
@@ -0,0 +1,39 @@
+from user_scanner.core.result import Result
+from user_scanner.core.orchestrator import generic_validate
+
+def validate_discord(user):
+ url = "https://discord.com/api/v9/unique-username/username-attempt-unauthed"
+
+ headers = {
+ "authority": "discord.com",
+ "accept": "/",
+ "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
+ "content-type": "application/json",
+ "origin": "https://discord.com",
+ "referer": "https://discord.com/register"
+ }
+
+ data = {"username": user}
+
+ def process(response):
+ if response.status_code == 200:
+ status = response.json().get("taken")
+ if status is True:
+ return Result.taken()
+ elif status is False:
+ return Result.available()
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process, method="POST", json=data, headers=headers, timeout=3.0)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_discord(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/instagram.py b/user_scanner/user_scan/social/instagram.py
new file mode 100644
index 0000000..999c68c
--- /dev/null
+++ b/user_scanner/user_scan/social/instagram.py
@@ -0,0 +1,29 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_instagram(user):
+ url = f"https://www.instagram.com/api/v1/users/web_profile_info/?username={user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
+ 'X-IG-App-ID': "936619743392459",
+ 'Accept': "application/json, text/javascript, */*; q=0.01",
+ 'Accept-Encoding': "gzip, deflate, br",
+ 'Accept-Language': "en-US,en;q=0.9",
+ 'X-Requested-With': "XMLHttpRequest",
+ 'Referer': f"https://www.instagram.com/{user}/",
+ }
+
+ return status_validate(url, 404, 200, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_instagram(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/mastodon.py b/user_scanner/user_scan/social/mastodon.py
new file mode 100644
index 0000000..7aa6349
--- /dev/null
+++ b/user_scanner/user_scan/social/mastodon.py
@@ -0,0 +1,30 @@
+import re
+from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.result import Result
+
+
+def validate_mastodon(user: str) -> Result:
+ if not (3 <= len(user) <= 30):
+ return Result.error("Length must be 3-30 characters")
+
+ if not re.match(r'^[a-zA-Z0-9_-]+$', user):
+ return Result.error("Usernames can only contain letters, numbers, underscores and hyphens")
+
+ if not re.match(r'^[a-zA-Z0-9].*[a-zA-Z0-9]$', user):
+ return Result.error("Username must start and end with a letter or number")
+
+ url = f"https://mastodon.social/api/v1/accounts/lookup?acct={user}"
+
+ return status_validate(url, 404, 200, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_mastodon(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/social/pinterest.py b/user_scanner/user_scan/social/pinterest.py
new file mode 100644
index 0000000..286d00a
--- /dev/null
+++ b/user_scanner/user_scan/social/pinterest.py
@@ -0,0 +1,28 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+def validate_pinterest(user):
+ url = f"https://www.pinterest.com/{user}/"
+
+ def process(response):
+ if response.status_code == 200:
+ if "User not found." in response.text:
+ return Result.available()
+ else:
+ return Result.taken()
+ else:
+ return Result.error("Invalid status code")
+
+ return generic_validate(url, process, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_pinterest(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/reddit.py b/user_scanner/user_scan/social/reddit.py
new file mode 100644
index 0000000..0e81d48
--- /dev/null
+++ b/user_scanner/user_scan/social/reddit.py
@@ -0,0 +1,29 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_reddit(user):
+ url = f"https://www.reddit.com/user/{user}/"
+
+ def process(response):
+ if response.status_code == 200:
+ if "Sorry, nobody on Reddit goes by that name." in response.text:
+ return Result.available()
+ else:
+ return Result.taken()
+ else:
+ return Result.error()
+
+ return generic_validate(url, process, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_reddit(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/snapchat.py b/user_scanner/user_scan/social/snapchat.py
new file mode 100644
index 0000000..ac48f64
--- /dev/null
+++ b/user_scanner/user_scan/social/snapchat.py
@@ -0,0 +1,35 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_snapchat(user):
+ url = f"https://www.snapchat.com/@{user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "gzip, deflate, br, zstd",
+ 'sec-ch-ua': "\"Google Chrome\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",
+ 'sec-ch-ua-mobile': "?1",
+ 'sec-ch-ua-platform': "\"Android\"",
+ 'upgrade-insecure-requests': "1",
+ 'sec-fetch-site': "none",
+ 'sec-fetch-mode': "navigate",
+ 'sec-fetch-user': "?1",
+ 'sec-fetch-dest': "document",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+ return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_snapchat(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/soundcloud.py b/user_scanner/user_scan/social/soundcloud.py
new file mode 100644
index 0000000..7faeb0e
--- /dev/null
+++ b/user_scanner/user_scan/social/soundcloud.py
@@ -0,0 +1,38 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_soundcloud(user):
+ url = f"https://soundcloud.com/{user}"
+
+ def process(response):
+ if response.status_code == 404:
+ return Result.available()
+
+ if response.status_code == 200:
+ text = response.text
+
+ if 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()
+
+ return Result.available()
+
+ return Result.error()
+
+ return generic_validate(url, process, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_soundcloud(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/telegram.py b/user_scanner/user_scan/social/telegram.py
new file mode 100644
index 0000000..bae31e7
--- /dev/null
+++ b/user_scanner/user_scan/social/telegram.py
@@ -0,0 +1,29 @@
+import re
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_telegram(user: str) -> Result:
+ url = f"https://t.me/{user}"
+
+ def process(r):
+ if r.status_code == 200:
+ if re.search(r'<div[^>]*class="tgme_page_extra"[^>]*>', r.text):
+ return Result.taken()
+ else:
+ return Result.available()
+ return Result.error()
+
+ return generic_validate(url, process, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_telegram(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/threads.py b/user_scanner/user_scan/social/threads.py
new file mode 100644
index 0000000..4a0c96a
--- /dev/null
+++ b/user_scanner/user_scan/social/threads.py
@@ -0,0 +1,29 @@
+from user_scanner.core.orchestrator import status_validate
+
+
+def validate_instagram(user):
+ url = f"https://www.threads.com/api/v1/users/web_profile_info/?username={user}"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
+ 'X-IG-App-ID': "936619743392459",
+ 'Accept': "application/json, text/javascript, */*; q=0.01",
+ 'Accept-Encoding': "gzip, deflate, br",
+ 'Accept-Language': "en-US,en;q=0.9",
+ 'X-Requested-With': "XMLHttpRequest",
+ 'Referer': f"https://www.instagram.com/{user}/",
+ }
+
+ return status_validate(url, 404, 200, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_instagram(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/tiktok.py b/user_scanner/user_scan/social/tiktok.py
new file mode 100644
index 0000000..2faec7f
--- /dev/null
+++ b/user_scanner/user_scan/social/tiktok.py
@@ -0,0 +1,50 @@
+import re
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_tiktok(user: str) -> Result:
+ if not (2 <= len(user) <= 24):
+ return Result.error("Length must be 2-24 characters")
+
+ if user.isdigit():
+ return Result.error("Usernames cannot contain numbers only")
+
+ if not re.match(r'^[a-zA-Z0-9_.]+$', user):
+ return Result.error("Usernames can only contain letters, numbers, underscores and periods")
+
+ if user.startswith(".") or user.endswith("."):
+ return Result.error("Username cannot start nor end with a period")
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ 'Accept-Encoding': "identity",
+ 'Accept-Language': "en-US,en;q=0.9",
+ 'sec-fetch-dest': "document",
+ 'Connection': "keep-alive"
+ }
+
+ url = f"https://www.tiktok.com/@{user}"
+
+ def process(response) -> Result:
+ if response.status_code == 200:
+ if "statuscode\":10221" in response.text.lower():
+ return Result.available()
+ else:
+ return Result.taken()
+ return Result.error("Unable to load tiktok")
+
+ return generic_validate(url, process, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_tiktok(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")
diff --git a/user_scanner/user_scan/social/x.py b/user_scanner/user_scan/social/x.py
new file mode 100644
index 0000000..98a8200
--- /dev/null
+++ b/user_scanner/user_scan/social/x.py
@@ -0,0 +1,46 @@
+from user_scanner.core.result import Result
+from user_scanner.core.orchestrator import generic_validate
+
+def validate_x(user):
+ url = "https://api.twitter.com/i/users/username_available.json"
+
+ params = {
+ "username": user,
+ "full_name": "John Doe",
+ "email": "[email protected]"
+ }
+
+ headers = {
+ "Authority": "api.twitter.com",
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
+ }
+
+ def process(response):
+ status = response.status_code
+
+ if status in [401, 403, 429]:
+ return Result.error()
+
+ elif status == 200:
+ data = response.json()
+ if data.get('valid') is True:
+ return Result.available()
+ elif data.get('reason') == 'taken':
+ return Result.taken()
+ elif (data.get('reason') == "improper_format" or data.get('reason') == "invalid_username"):
+ return Result.error(f"X says: {data.get('desc')}")
+
+ return Result.error()
+
+ return generic_validate(url, process, params=params, headers=headers)
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_x(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print("Error occured!")
diff --git a/user_scanner/user_scan/social/youtube.py b/user_scanner/user_scan/social/youtube.py
new file mode 100644
index 0000000..341463f
--- /dev/null
+++ b/user_scanner/user_scan/social/youtube.py
@@ -0,0 +1,50 @@
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_youtube(user) -> Result:
+ url = f"https://m.youtube.com/@{user}"
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "identity",
+ 'sec-ch-dpr': "2.75",
+ 'sec-ch-viewport-width': "980",
+ 'sec-ch-ua': "\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\"",
+ 'sec-ch-ua-mobile': "?1",
+ 'sec-ch-ua-full-version': "\"143.0.7499.52\"",
+ 'sec-ch-ua-arch': "\"\"",
+ 'sec-ch-ua-platform': "\"Android\"",
+ 'sec-ch-ua-platform-version': "\"15.0.0\"",
+ 'sec-ch-ua-model': "\"I2404\"",
+ 'sec-ch-ua-bitness': "\"\"",
+ 'sec-ch-ua-wow64': "?0",
+ 'sec-ch-ua-full-version-list': "\"Google Chrome\";v=\"143.0.7499.52\", \"Chromium\";v=\"143.0.7499.52\", \"Not A(Brand\";v=\"24.0.0.0\"",
+ 'sec-ch-ua-form-factors': "\"Mobile\"",
+ 'upgrade-insecure-requests': "1",
+ 'x-browser-channel': "stable",
+ 'x-browser-year': "2025",
+ 'x-browser-copyright': "Copyright 2025 Google LLC. All Rights reserved.",
+ 'sec-fetch-site': "none",
+ 'sec-fetch-mode': "navigate",
+ 'sec-fetch-user': "?1",
+ 'sec-fetch-dest': "document",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+
+ return status_validate(url, 404, 200, headers=headers)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_youtube(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ reason = result.get_reason()
+ print(f"Error occurred! Reason: {reason}")
+