π΅οΈββοΈ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
PEP8 formatting
kaifcodec60dbb41abe73
diff --git a/user_scanner/__init__.py b/user_scanner/__init__.pyindex 8b13789..e69de29 100644--- a/user_scanner/__init__.py+++ b/user_scanner/__init__.py@@ -1 +0,0 @@-diff --git a/user_scanner/__main__.py b/user_scanner/__main__.pyindex 51e70b7..4e907fd 100644--- a/user_scanner/__main__.py+++ b/user_scanner/__main__.py@@ -14,6 +14,7 @@ CATEGORY_MAPPING = {"donation": "donation"}+def list_modules(category=None):from user_scanner import dev, social, creator, community, gaming, donationpackages = {@@ -30,11 +31,13 @@ def list_modules(category=None):for cat_name in categories_to_list:package = packages[cat_name]modules = load_modules(package)- print(Fore.MAGENTA + f"\n== {cat_name.upper()} SITES =={Style.RESET_ALL}")+ print(Fore.MAGENTA ++ f"\n== {cat_name.upper()} SITES =={Style.RESET_ALL}")for module in modules:site_name = module.__name__.split(".")[-1]print(f" - {site_name}")+def main():parser = argparse.ArgumentParser(prog="user-scanner",@@ -60,26 +63,26 @@ def main():args = parser.parse_args()if args.module and "." in args.module:- args.module = args.module.replace(".", "_")+ args.module = args.module.replace(".", "_")if args.list:list_modules(args.category)return-# Special username checks before runif (args.module == "x" or args.category == "social"):- if re.search(r"[^a-zA-Z0-9._-]", args.username):- print(Fore.RED + f"[!] Username '{args.username}' contains unsupported special characters. X (Twitter) doesn't support these." + Style.RESET_ALL)+ if re.search(r"[^a-zA-Z0-9._-]", args.username):+ print(+ Fore.RED + f"[!] Username '{args.username}' contains unsupported special characters. X (Twitter) doesn't support these." + Style.RESET_ALL)if (args.module == "bluesky" or args.category == "social"):- if re.search(r"[^a-zA-Z0-9\.-]", args.username):- print(Fore.RED + f"[!] Username '{args.username}' contains unsupported special characters. Bluesky will throw error. (Supported: only hyphens and digits)" + Style.RESET_ALL +"\n")+ if re.search(r"[^a-zA-Z0-9\.-]", args.username):+ print(+ Fore.RED + f"[!] Username '{args.username}' contains unsupported special characters. Bluesky will throw error. (Supported: only hyphens and digits)" + Style.RESET_ALL + "\n")if not args.username:- parser.print_help()- return+ parser.print_help()+ returnelse:- print_banner()-+ print_banner()from user_scanner import dev, social, creator, community, gaming, donation@@ -96,7 +99,8 @@ def main():run_module_single(module, args.username)found = Trueif not found:- print(Fore.RED + f"[!] Module '{args.module}' not found in any category." + Style.RESET_ALL)+ print(+ Fore.RED + f"[!] Module '{args.module}' not found in any category." + Style.RESET_ALL)elif args.category:# Category-wise scancategory_package = eval(CATEGORY_MAPPING[args.category])@@ -106,5 +110,6 @@ def main():# Full scanrun_checks(args.username)+if __name__ == "__main__":main()diff --git a/user_scanner/cli/banner.py b/user_scanner/cli/banner.pyindex b8f7dfa..46b929c 100644--- a/user_scanner/cli/banner.py+++ b/user_scanner/cli/banner.py@@ -23,10 +23,12 @@ INFO_BOX = f"""{C_MAGENTA} βββββββββββββββββ {C_RED}β {C_GREEN}Email{C_WHITE} : [email protected] {C_MAGENTA}βββββββββββββββββββββββββββββββββββββββββββ{Style.RESET_ALL}""".strip()+def print_banner():print(BANNER_ASCII)print(INFO_BOX)print(" ")+if __name__ == "__main__":print_banner()diff --git a/user_scanner/community/coderlegion.py b/user_scanner/community/coderlegion.pyindex 6d582f1..a79d5bb 100644--- a/user_scanner/community/coderlegion.py+++ b/user_scanner/community/coderlegion.py@@ -1,18 +1,19 @@from ..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)+def validate_coderlegion(user):+ url = f"https://coderlegion.com/user/{user}"++ return status_validate(url, 404, 200, timeout=15.0)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+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/core/orchestrator.py b/user_scanner/core/orchestrator.pyindex dca16ed..a83c252 100644--- a/user_scanner/core/orchestrator.py+++ b/user_scanner/core/orchestrator.py@@ -7,9 +7,10 @@ import httpxfrom httpx import ConnectError, TimeoutExceptionlock = threading.Condition()-#Basically which thread is the one to print+# Basically which thread is the one to printprint_queue = 0+def load_modules(package):modules = []@@ -21,12 +22,13 @@ def load_modules(package):print(f"Failed to import {name}: {e}")return modules+def worker_single(module, username, i):global print_queuefunc = next((getattr(module, f) for f in dir(module)if f.startswith("validate_") and callable(getattr(module, f))), None)- site_name = module.__name__.split('.')[-1].capitalize().replace("_",".")+ site_name = module.__name__.split('.')[-1].capitalize().replace("_", ".")if site_name == "X":site_name = "X (Twitter)"@@ -46,7 +48,7 @@ def worker_single(module, username, i):output = f" {Fore.YELLOW}[!] {site_name} has no validate_ function{Style.RESET_ALL}"with lock:- #Waits for in-order printing+ # Waits for in-order printingwhile i != print_queue:lock.wait()@@ -54,13 +56,15 @@ def worker_single(module, username, i):print_queue += 1lock.notify_all()+def run_module_single(module, username):- #Just executes as if it was a thread+ # Just executes as if it was a threadworker_single(module, username, print_queue)-++def run_checks_category(package, username, verbose=False):global print_queue-+modules = load_modules(package)category_name = package.__name__.split('.')[-1].capitalize()print(f"{Fore.MAGENTA}== {category_name} SITES =={Style.RESET_ALL}")@@ -76,6 +80,7 @@ def run_checks_category(package, username, verbose=False):for t in threads:t.join()+def run_checks(username):from user_scanner import dev, social, creator, community, gaming, donation@@ -87,6 +92,7 @@ def run_checks(username):run_checks_category(package, username)print()+def make_get_request(url, **kwargs):"""Simple wrapper to **httpx.get** that predefines headers and timeout"""if not "headers" in kwargs:@@ -103,6 +109,7 @@ def make_get_request(url, **kwargs):return httpx.get(url, **kwargs)+def generic_validate(url, func, **kwargs):"""A generic validate function that makes a request and executes the provided function on the response.@@ -114,7 +121,8 @@ def generic_validate(url, func, **kwargs):return 2except Exception:return 2-++def status_validate(url, available, taken, **kwargs):"""Function that takes a **url** and **kwargs** for the request and@@ -122,15 +130,15 @@ def status_validate(url, available, taken, **kwargs):**Available** and **Taken** must either be whole numbers or lists of whole numbers."""def inner(response):- #Checks if a number is equal or is contained inside- contains = lambda a,b: (isinstance(a,list) and b in a) or (a == b)+ # Checks if a number is equal or is contained inside+ def contains(a, b): return (isinstance(a, list) and b in a) or (a == b)status = response.status_codeavailable_value = contains(available, status)taken_value = contains(taken, status)if available_value and taken_value:- return 2 # Can't be both available and taken+ return 2 # Can't be both available and takenelif available_value:return 1elif taken_value:diff --git a/user_scanner/creator/devto.py b/user_scanner/creator/devto.pyindex f908e34..d57fd7c 100644--- a/user_scanner/creator/devto.py+++ b/user_scanner/creator/devto.py@@ -1,17 +1,19 @@from ..core.orchestrator import status_validate+def validate_devto(user):- url = f"https://dev.to/{user}"+ url = f"https://dev.to/{user}"++ return status_validate(url, 404, 200, follow_redirects=True)- return status_validate(url, 404, 200, follow_redirects = True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_devto(user)+ user = input("Username?: ").strip()+ result = validate_devto(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/creator/hashnode.py b/user_scanner/creator/hashnode.pyindex e822cbe..3a549ec 100644--- a/user_scanner/creator/hashnode.py+++ b/user_scanner/creator/hashnode.py@@ -2,20 +2,21 @@ import httpximport jsonfrom httpx import ConnectError, TimeoutException+def validate_hashnode(user):url = "https://hashnode.com/utility/ajax/check-username"payload = {- "username": user,- "name": "Dummy Dummy"+ "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",+ '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",}try:@@ -33,7 +34,7 @@ def validate_hashnode(user):return 2else:- return 2+ return 2except (ConnectError, TimeoutException):return 2@@ -42,13 +43,14 @@ def validate_hashnode(user):except Exception:return 2+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!")+ 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/creator/itch_io.py b/user_scanner/creator/itch_io.pyindex 6ab0c76..003988a 100644--- a/user_scanner/creator/itch_io.py+++ b/user_scanner/creator/itch_io.py@@ -1,5 +1,6 @@from ..core.orchestrator import status_validate+def validate_itch_io(user):"""Checks if a itch.io username is available.@@ -8,15 +9,16 @@ def validate_itch_io(user):url = f"https://{user}.itch.io"- return status_validate(url, 404, 200, follow_redirects = True)+ return status_validate(url, 404, 200, follow_redirects=True)+if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_itch_io(user)+ user = input("Username?: ").strip()+ result = validate_itch_io(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/creator/kaggle.py b/user_scanner/creator/kaggle.pyindex d76710e..7c66254 100644--- a/user_scanner/creator/kaggle.py+++ b/user_scanner/creator/kaggle.py@@ -1,18 +1,19 @@from ..core.orchestrator import status_validate+def validate_kaggle(user):- url = f"https://www.kaggle.com/{user}"+ url = f"https://www.kaggle.com/{user}"- return status_validate(url, 404, 200, follow_redirects=True)+ return status_validate(url, 404, 200, follow_redirects=True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_kaggle(user)+ user = input("Username?: ").strip()+ result = validate_kaggle(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/creator/medium.py b/user_scanner/creator/medium.pyindex d249711..6072ca2 100644--- a/user_scanner/creator/medium.py+++ b/user_scanner/creator/medium.py@@ -1,6 +1,7 @@import httpxfrom httpx import ConnectError, TimeoutException+def validate_medium(user):url = f"https://medium.com/@{user}"@@ -15,7 +16,6 @@ def validate_medium(user):if response.status_code == 200:html_text = response.text-username_tag = f'property="profile:username" content="{user}"'if username_tag in html_text:@@ -29,13 +29,14 @@ def validate_medium(user):except Exception:return 2+if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_medium(user)-- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ user = input("Username?: ").strip()+ result = validate_medium(user)++ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/creator/patreon.py b/user_scanner/creator/patreon.pyindex 49bd55d..57eb204 100644--- a/user_scanner/creator/patreon.py+++ b/user_scanner/creator/patreon.py@@ -1,23 +1,25 @@from ..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)+ return status_validate(url, 404, 200, timeout=15.0, follow_redirects=True)+if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()+ try:+ import httpx+ except ImportError:+ print("Error: 'httpx' library is not installed.")+ exit()- user = input ("Username?: ").strip()- result = validate_patreon(user)+ user = input("Username?: ").strip()+ result = validate_patreon(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/creator/producthunt.py b/user_scanner/creator/producthunt.pyindex cc33a6c..85e9ca6 100644--- a/user_scanner/creator/producthunt.py+++ b/user_scanner/creator/producthunt.py@@ -1,6 +1,7 @@import httpxfrom httpx import ConnectError, TimeoutException+def validate_producthunt(user):url = f"https://www.producthunt.com/@{user}"@@ -12,29 +13,30 @@ def validate_producthunt(user):}try:- response = httpx.get(url, headers=headers, timeout = 3.0, follow_redirects=True)+ response = httpx.get(url, headers=headers,+ timeout=3.0, follow_redirects=True)status = response.status_codeif status == 200:- return 0+ return 0elif status == 404:- return 1+ return 1else:- return 2+ return 2except (ConnectError, TimeoutException):return 2except Exception:return 2-if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_producthunt(user)-- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+if __name__ == "__main__":+ user = input("Username?: ").strip()+ result = validate_producthunt(user)++ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/dev/codeberg.py b/user_scanner/dev/codeberg.pyindex 8dd7c66..cb7428a 100644--- a/user_scanner/dev/codeberg.py+++ b/user_scanner/dev/codeberg.py@@ -1,17 +1,19 @@from ..core.orchestrator import status_validate+def validate_codeberg(user):- url = f"https://codeberg.org/{user}"+ url = f"https://codeberg.org/{user}"++ return status_validate(url, 404, 200, follow_redirects=True)- return status_validate(url, 404, 200, follow_redirects = True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_codeberg(user)+ user = input("Username?: ").strip()+ result = validate_codeberg(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/dev/cratesio.py b/user_scanner/dev/cratesio.pyindex a5e9adc..976af83 100644--- a/user_scanner/dev/cratesio.py+++ b/user_scanner/dev/cratesio.py@@ -1,24 +1,26 @@from ..core.orchestrator import status_validate+def validate_cratesio(user):- url = f"https://crates.io/api/v1/users/{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",+ }- 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)- return status_validate(url, 404, 200, headers = headers)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_cratesio(user)+ user = input("Username?: ").strip()+ result = validate_cratesio(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/dev/dockerhub.py b/user_scanner/dev/dockerhub.pyindex 4a59918..9c6900d 100644--- a/user_scanner/dev/dockerhub.py+++ b/user_scanner/dev/dockerhub.py@@ -1,22 +1,24 @@from ..core.orchestrator import status_validate+def validate_dockerhub(user):- url = f"https://hub.docker.com/v2/users/{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",+ }- 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)- return status_validate(url, 404, 200, headers = headers)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_dockerhub(user)+ user = input("Username?: ").strip()+ result = validate_dockerhub(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/dev/github.py b/user_scanner/dev/github.pyindex 59cc5bb..c992ced 100644--- a/user_scanner/dev/github.py+++ b/user_scanner/dev/github.py@@ -1,31 +1,33 @@from ..core.orchestrator import status_validate+def validate_github(user):- url = f"https://github.com/signup_check/username?value={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"+ }- 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"- }+ return status_validate(url, 200, 422, headers=headers)- return status_validate(url, 200, 422, headers = headers)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_github(user)+ user = input("Username?: ").strip()+ result = validate_github(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/dev/gitlab.py b/user_scanner/dev/gitlab.pyindex 614989e..07e6f59 100644--- a/user_scanner/dev/gitlab.py+++ b/user_scanner/dev/gitlab.py@@ -1,5 +1,6 @@from ..core.orchestrator import generic_validate+def validate_gitlab(user):url = f"https://gitlab.com/users/{user}/exists"@@ -22,16 +23,17 @@ def validate_gitlab(user):elif data['exists'] is True:return 0return 2-- return generic_validate(url, process, headers = headers)++ 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!")+ 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/dev/launchpad.py b/user_scanner/dev/launchpad.pyindex d613825..a5e080f 100644--- a/user_scanner/dev/launchpad.py+++ b/user_scanner/dev/launchpad.py@@ -1,24 +1,26 @@from ..core.orchestrator import status_validate+def validate_launchpad(user):- url = f"https://launchpad.net/~{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",+ }- 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)- return status_validate(url, 404, 200, headers = headers, follow_redirects=True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_launchpad(user)+ user = input("Username?: ").strip()+ result = validate_launchpad(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/dev/npmjs.py b/user_scanner/dev/npmjs.pyindex 9300634..0316489 100644--- a/user_scanner/dev/npmjs.py+++ b/user_scanner/dev/npmjs.py@@ -1,40 +1,43 @@import httpxfrom httpx import ConnectError, TimeoutException+def validate_npmjs(user):url = f"https://www.npmjs.com/~{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': "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",- 'accept-language': "en-US,en;q=0.9",- 'priority': "u=0, i"-}+ '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,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",+ 'Accept-Encoding': "gzip, deflate, br, zstd",+ 'accept-language': "en-US,en;q=0.9",+ 'priority': "u=0, i"+ }try:- response = httpx.head(url, headers=headers, timeout=3.0, follow_redirects=True)+ response = httpx.head(url, headers=headers,+ timeout=3.0, follow_redirects=True)status = response.status_codeif status == 200:- return 0+ return 0elif status == 404:- return 1+ return 1else:- return 2+ return 2except (ConnectError, TimeoutException):return 2except Exception:return 2+if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_npmjs(user)-- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ user = input("Username?: ").strip()+ result = validate_npmjs(user)++ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/dev/replit.py b/user_scanner/dev/replit.pyindex ba9fca9..7d028d6 100644--- a/user_scanner/dev/replit.py+++ b/user_scanner/dev/replit.py@@ -1,17 +1,19 @@from ..core.orchestrator import status_validate+def validate_replit(user):- url = f"https://replit.com/@{user}"+ url = f"https://replit.com/@{user}"++ return status_validate(url, 404, 200, follow_redirects=True)- return status_validate(url, 404, 200, follow_redirects = True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_replit(user)+ user = input("Username?: ").strip()+ result = validate_replit(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/donation/buymeacoffee.py b/user_scanner/donation/buymeacoffee.pyindex 21954b1..da60903 100644--- a/user_scanner/donation/buymeacoffee.py+++ b/user_scanner/donation/buymeacoffee.py@@ -3,19 +3,20 @@ from httpx import ConnectError, TimeoutExceptionfrom ..core.orchestrator import status_validate+def validate_buymeacoffee(user):url = f"https://buymeacoffee.com/{user}"- return status_validate(url, 404, 200, follow_redirects = True)+ return status_validate(url, 404, 200, follow_redirects=True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_buymeacoffee(user)+ user = input("Username?: ").strip()+ result = validate_buymeacoffee(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/gaming/chess_com.py b/user_scanner/gaming/chess_com.pyindex 7140121..da5b348 100644--- a/user_scanner/gaming/chess_com.py+++ b/user_scanner/gaming/chess_com.py@@ -1,5 +1,6 @@from ..core.orchestrator import generic_validate+def validate_chess_com(user):url = f"https://www.chess.com/callback/user/valid?username={user}"@@ -15,27 +16,28 @@ def validate_chess_com(user):data = response.json()if data.get('valid') is True:# 'valid': true means the username is NOT taken- return 1+ return 1elif data.get('valid') is False:# 'valid': false means the username IS takenreturn 0return 2- return generic_validate(url, process, headers = headers)+ return generic_validate(url, process, headers=headers)+if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()-- user = input ("Username?: ").strip()- result = validate_chess_com(user)-- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ try:+ import httpx+ except ImportError:+ print("Error: 'httpx' library is not installed.")+ exit()++ 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/gaming/monkeytype.py b/user_scanner/gaming/monkeytype.pyindex 6e3c35f..3790292 100644--- a/user_scanner/gaming/monkeytype.py+++ b/user_scanner/gaming/monkeytype.py@@ -1,5 +1,6 @@from ..core.orchestrator import generic_validate+def validate_monkeytype(user: str) -> int:url = f"https://api.monkeytype.com/users/checkName/{user}"@@ -28,9 +29,9 @@ def validate_monkeytype(user: str) -> int:elif available is False:return 0return 2-- return generic_validate(url, process, headers = headers)+ return generic_validate(url, process, headers=headers)+if __name__ == "__main__":try:diff --git a/user_scanner/gaming/osu.py b/user_scanner/gaming/osu.pyindex 179ddb1..aa02f45 100644--- a/user_scanner/gaming/osu.py+++ b/user_scanner/gaming/osu.py@@ -1,22 +1,24 @@from ..core.orchestrator import status_validate+def validate_osu(user):"""Checks if a Osu username is available.Returns: 1 -> available, 0 -> taken, 2 -> error"""-+url = f"https://osu.ppy.sh/users/{user}"-- return status_validate(url, 404, [200, 302], follow_redirects = True)++ return status_validate(url, 404, [200, 302], follow_redirects=True)+if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_osu(user)+ user = input("Username?: ").strip()+ result = validate_osu(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occurred!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")diff --git a/user_scanner/gaming/roblox.py b/user_scanner/gaming/roblox.pyindex 9530d81..0380faa 100644--- a/user_scanner/gaming/roblox.py+++ b/user_scanner/gaming/roblox.py@@ -1,34 +1,38 @@from ..core.orchestrator import generic_validate+def validate_roblox(user):"""Checks if a roblox username is available.Returns: 1 -> available, 0 -> taken, 2 -> error"""- url = f"https://users.roblox.com/v1/users/search?keyword={user}&limit=10" # official api+ # official api+ url = f"https://users.roblox.com/v1/users/search?keyword={user}&limit=10"def process(response):- search_results = response.json() # api response+ search_results = response.json() # api response- if "errors" in search_results: # this usually triggers when timeout or ratelimit+ if "errors" in search_results: # this usually triggers when timeout or ratelimitreturn 2- for entry in search_results["data"]: # iterates through the entries in the search results+ # 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+ if entry["name"].lower() == user.lower(): # if a username matches the userreturn 0return 1- return generic_validate(url, process, follow_redirects = True)+ return generic_validate(url, process, 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!")+ 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/gaming/steam.py b/user_scanner/gaming/steam.pyindex 36bbeb8..e438a55 100644--- a/user_scanner/gaming/steam.py+++ b/user_scanner/gaming/steam.py@@ -1,5 +1,6 @@from ..core.orchestrator import generic_validate+def validate_steam(user):"""Checks if a steam username is available.@@ -18,13 +19,14 @@ def validate_steam(user):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!")+ 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/social/bluesky.py b/user_scanner/social/bluesky.pyindex 8b02245..ba2567b 100644--- a/user_scanner/social/bluesky.py+++ b/user_scanner/social/bluesky.py@@ -1,6 +1,7 @@import refrom ..core.orchestrator import generic_validate+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"@@ -26,7 +27,7 @@ def validate_bluesky(user):if not re.fullmatch(r"^[a-zA-Z0-9\.-]{1,64}$", user):return 2-+def process(response):if response.status_code == 200:data = response.json()@@ -38,21 +39,22 @@ def validate_bluesky(user):return 0return 2- return generic_validate(url, process, headers = headers, params = params, timeout = 15.0)+ return generic_validate(url, process, headers=headers, params=params, timeout=15.0)+if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()-- user = input ("Username?: ").strip()- result = validate_bluesky(user)-- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ try:+ import httpx+ except ImportError:+ print("Error: 'httpx' library is not installed.")+ exit()++ 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/social/discord.py b/user_scanner/social/discord.pyindex d086dba..e2d853b 100644--- a/user_scanner/social/discord.py+++ b/user_scanner/social/discord.py@@ -1,6 +1,7 @@import httpxfrom httpx import ConnectError, TimeoutException+def validate_discord(user):url = "https://discord.com/api/v9/unique-username/username-attempt-unauthed"@@ -12,9 +13,9 @@ def validate_discord(user):"origin": "https://discord.com","referer": "https://discord.com/register"}-+data = {"username": user}-+try:response = httpx.post(url, headers=headers, json=data, timeout=3.0)if response.status_code == 200:@@ -29,16 +30,14 @@ def validate_discord(user):except Exception:return 2-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!")-+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/social/instagram.py b/user_scanner/social/instagram.pyindex 98b9f69..4d8a0a2 100644--- a/user_scanner/social/instagram.py+++ b/user_scanner/social/instagram.py@@ -1,27 +1,29 @@from ..core.orchestrator import status_validate+def validate_instagram(user):- url = f"https://www.instagram.com/api/v1/users/web_profile_info/?username={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}/",+ }- 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)- return status_validate(url, 404, 200, headers = headers)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_instagram(user)+ user = input("Username?: ").strip()+ result = validate_instagram(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/mastodon.py b/user_scanner/social/mastodon.pyindex b1a650c..8fa79cc 100644--- a/user_scanner/social/mastodon.py+++ b/user_scanner/social/mastodon.py@@ -1,23 +1,25 @@from ..core.orchestrator import status_validate+def validate_mastodon(user):url = f"https://mastodon.social/@{user}"- return status_validate(url, 404, 200, follow_redirects = True)+ return status_validate(url, 404, 200, follow_redirects=True)+if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()+ try:+ import httpx+ except ImportError:+ print("Error: 'httpx' library is not installed.")+ exit()- user = input ("Username?: ").strip()- result = validate_mastodon(user)+ user = input("Username?: ").strip()+ result = validate_mastodon(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/pinterest.py b/user_scanner/social/pinterest.pyindex 25a2920..54514da 100644--- a/user_scanner/social/pinterest.py+++ b/user_scanner/social/pinterest.py@@ -1,5 +1,6 @@from ..core.orchestrator import generic_validate+def validate_pinterest(user):url = f"https://www.pinterest.com/{user}/"@@ -10,17 +11,18 @@ def validate_pinterest(user):else:return 0else:- return 2+ return 2++ return generic_validate(url, process, follow_redirects=True)- return generic_validate(url, process, follow_redirects = True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_pinterest(user)+ user = input("Username?: ").strip()+ result = validate_pinterest(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/reddit.py b/user_scanner/social/reddit.pyindex bc6a703..21c61a2 100644--- a/user_scanner/social/reddit.py+++ b/user_scanner/social/reddit.py@@ -1,5 +1,6 @@from ..core.orchestrator import generic_validate+def validate_reddit(user):url = f"https://www.reddit.com/user/{user}/"@@ -10,17 +11,18 @@ def validate_reddit(user):else:return 0else:- return 2+ return 2++ return generic_validate(url, process, follow_redirects=True)- return generic_validate(url, process, follow_redirects = True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_reddit(user)+ user = input("Username?: ").strip()+ result = validate_reddit(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/snapchat.py b/user_scanner/social/snapchat.pyindex 84f1c08..2efa720 100644--- a/user_scanner/social/snapchat.py+++ b/user_scanner/social/snapchat.py@@ -1,33 +1,35 @@from ..core.orchestrator import status_validate+def validate_snapchat(user):- url = f"https://www.snapchat.com/@{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"+ }- 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)- return status_validate(url, 404, 200, headers = headers, follow_redirects = True)if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_snapchat(user)+ user = input("Username?: ").strip()+ result = validate_snapchat(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/telegram.py b/user_scanner/social/telegram.pyindex 54f3fd4..bfbf6eb 100644--- a/user_scanner/social/telegram.py+++ b/user_scanner/social/telegram.py@@ -1,6 +1,7 @@import refrom ..core.orchestrator import generic_validate+def validate_telegram(user: str) -> int:"""Checks if a Telegram username is available.@@ -12,16 +13,17 @@ def validate_telegram(user: str) -> int:if r.status_code == 200:return 0 if re.search(r'<div[^>]*class="tgme_page_extra"[^>]*>', r.text) else 1return 2-- return generic_validate(url, process, follow_redirects = True)++ return generic_validate(url, process, follow_redirects=True)+if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_telegram(user)+ user = input("Username?: ").strip()+ result = validate_telegram(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/threads.py b/user_scanner/social/threads.pyindex 8772e67..2b7cabc 100644--- a/user_scanner/social/threads.py+++ b/user_scanner/social/threads.py@@ -1,27 +1,29 @@from ..core.orchestrator import status_validate+def validate_instagram(user):- url = f"https://www.threads.com/api/v1/users/web_profile_info/?username={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)- 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)+ user = input("Username?: ").strip()+ result = validate_instagram(user)- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/social/x.py b/user_scanner/social/x.pyindex 12d20d1..7b56cc7 100644--- a/user_scanner/social/x.py+++ b/user_scanner/social/x.py@@ -3,6 +3,7 @@ import jsonfrom colorama import Fore, Stylefrom httpx import ConnectError, TimeoutException+def validate_x(user):url = "https://api.twitter.com/i/users/username_available.json"@@ -18,13 +19,12 @@ def validate_x(user):}try:- response = httpx.get(url, params=params, headers=headers, timeout = 3.0)+ response = httpx.get(url, params=params, headers=headers, timeout=3.0)status = response.status_code# print(response.text)if status in [401, 403, 429]:return 2-elif status == 200:data = response.json()if data.get('valid') is True:@@ -32,7 +32,8 @@ def validate_x(user):elif data.get('reason') == 'taken':return 0elif (data.get('reason') == "improper_format" or data.get('reason') == "invalid_username"):- print("\n" +" "+f"{Fore.CYAN}X says: {data.get('desc')}{Style.RESET_ALL}")+ print(+ "\n" + " "+f"{Fore.CYAN}X says: {data.get('desc')}{Style.RESET_ALL}")return 2else:return 2@@ -42,13 +43,14 @@ def validate_x(user):except Exception:return 2+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!")+ 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/social/youtube.py b/user_scanner/social/youtube.pyindex 932cc97..e32b605 100644--- a/user_scanner/social/youtube.py+++ b/user_scanner/social/youtube.py@@ -1,56 +1,59 @@import httpxfrom httpx import ConnectError, TimeoutException+def validate_youtube(user):url = f"https://m.youtube.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",- 'device-memory': "4",- 'sec-ch-ua': "\"Google Chrome\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",- 'sec-ch-ua-mobile': "?1",- 'sec-ch-ua-full-version': "\"141.0.7390.111\"",- '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=\"141.0.7390.111\", \"Not?A_Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"141.0.7390.111\"",- 'sec-ch-ua-form-factors': "\"Mobile\"",- '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"+ '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",+ 'device-memory': "4",+ 'sec-ch-ua': "\"Google Chrome\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",+ 'sec-ch-ua-mobile': "?1",+ 'sec-ch-ua-full-version': "\"141.0.7390.111\"",+ '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=\"141.0.7390.111\", \"Not?A_Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"141.0.7390.111\"",+ 'sec-ch-ua-form-factors': "\"Mobile\"",+ '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"}try:- response = httpx.get(url, headers=headers, follow_redirects=True, timeout = 3.0)+ response = httpx.get(url, headers=headers,+ follow_redirects=True, timeout=3.0)status = response.status_codeif status == 200:- return 0+ return 0elif status == 404:- return 1+ return 1else:- return 2+ return 2except (ConnectError, TimeoutException):return 2except Exception:return 2+if __name__ == "__main__":- user = input ("Username?: ").strip()- result = validate_youtube(user)-- if result == 1:- print("Available!")- elif result == 0:- print("Unavailable!")- else:- print("Error occured!")+ user = input("Username?: ").strip()+ result = validate_youtube(user)++ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occured!")diff --git a/user_scanner/utils/version.py b/user_scanner/utils/version.pyindex e038264..b8c68ce 100644--- a/user_scanner/utils/version.py+++ b/user_scanner/utils/version.py@@ -4,6 +4,7 @@ from pathlib import Path_SCRIPT_DIR = Path(__file__).resolve().parentVERSION_FILE = _SCRIPT_DIR.parent / "version.json"+def load_local_version():try:data = json.loads(VERSION_FILE.read_text())@@ -15,6 +16,7 @@ def load_local_version():except Exception:return "N/A", "error"+if __name__ == "__main__":version, version_type = load_local_version()print(f"Version: {version}, Type: {version_type}")