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.

feat(user_scan/): add show_url support to all user_scan modules

kaifcodec56bc17363b5f
diff --git a/user_scanner/user_scan/community/coderlegion.py b/user_scanner/user_scan/community/coderlegion.py
index d0be955..7249319 100644
--- a/user_scanner/user_scan/community/coderlegion.py
+++ b/user_scanner/user_scan/community/coderlegion.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_coderlegion(user):
url = f"https://coderlegion.com/user/{user}"
+ show_url = "https://coderlegion.com"
- return status_validate(url, 404, 200, timeout=15.0)
+ return status_validate(url, 404, 200, show_url=show_url, timeout=15.0)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/community/hackernews.py b/user_scanner/user_scan/community/hackernews.py
index 3341513..19e1618 100644
--- a/user_scanner/user_scan/community/hackernews.py
+++ b/user_scanner/user_scan/community/hackernews.py
@@ -10,6 +10,7 @@ def validate_hackernews(user: str) -> Result:
return Result.error("Only use letters, numbers, underscores, and hyphens")
url = f"https://news.ycombinator.com/user?id={user}"
+ show_url = "https://news.ycombinator.com"
def process(response):
if "No such user." in response.text:
@@ -18,7 +19,7 @@ def validate_hackernews(user: str) -> Result:
return Result.taken()
return Result.error("Unexpected response structure")
- return generic_validate(url, process, timeout=3.0, follow_redirects=True)
+ return generic_validate(url, process, show_url=show_url, timeout=3.0, follow_redirects=True)
if __name__ == "__main__":
@@ -30,4 +31,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/community/lemmy.py b/user_scanner/user_scan/community/lemmy.py
index 7c501b2..b0e8809 100644
--- a/user_scanner/user_scan/community/lemmy.py
+++ b/user_scanner/user_scan/community/lemmy.py
@@ -14,8 +14,9 @@ def validate_lemmy(user: str) -> Result:
return Result.error("Only letters, numbers, and underscores allowed")
url = f"https://lemmy.world/api/v3/user?username={user}"
+ show_url = "https://lemmy.world"
- return status_validate(url, [400, 404], 200, timeout=5.0)
+ return status_validate(url, [400, 404], 200, show_url=show_url, timeout=5.0)
if __name__ == "__main__":
@@ -27,4 +28,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/community/stackoverflow.py b/user_scanner/user_scan/community/stackoverflow.py
index e14fa60..be6d355 100644
--- a/user_scanner/user_scan/community/stackoverflow.py
+++ b/user_scanner/user_scan/community/stackoverflow.py
@@ -3,6 +3,7 @@ from user_scanner.core.result import Result
def validate_stackoverflow(user: str) -> Result:
url = f"https://stackoverflow.com/users/filter?search={user}"
+ show_url = "https://stackoverflow.com"
def process(response):
if response.status_code == 200:
@@ -19,7 +20,7 @@ def validate_stackoverflow(user: str) -> Result:
return Result.error("Unexpected status code from Stack Overflow")
- return generic_validate(url, process)
+ return generic_validate(url, process, show_url=show_url)
if __name__ == "__main__":
@@ -32,4 +33,4 @@ if __name__ == "__main__":
print("Unavailable!")
else:
msg = result.get_reason()
- print("Error occurred!" + msg)
+ print("Error occurred!" + msg)
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/devto.py b/user_scanner/user_scan/creator/devto.py
index cf55174..1933063 100644
--- a/user_scanner/user_scan/creator/devto.py
+++ b/user_scanner/user_scan/creator/devto.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_devto(user):
url = f"https://dev.to/{user}"
+ show_url = "https://dev.to"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/gumroad.py b/user_scanner/user_scan/creator/gumroad.py
index 992aab4..66abe3c 100644
--- a/user_scanner/user_scan/creator/gumroad.py
+++ b/user_scanner/user_scan/creator/gumroad.py
@@ -6,7 +6,8 @@ def validate_gumroad(user: str) -> Result:
return Result.error("Username must be between 3 and 20 lowercase alphanumeric characters")
url = f"https://{user}.gumroad.com/"
- return status_validate(url, 404, 200, follow_redirects=True)
+ show_url = "https://gumroad.com"
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -19,4 +20,3 @@ if __name__ == "__main__":
print("Unavailable!")
else:
print(f"Error occurred! Reason: {result.get_reason()}")
-
diff --git a/user_scanner/user_scan/creator/hashnode.py b/user_scanner/user_scan/creator/hashnode.py
index 1098486..c93496b 100644
--- a/user_scanner/user_scan/creator/hashnode.py
+++ b/user_scanner/user_scan/creator/hashnode.py
@@ -4,6 +4,7 @@ from user_scanner.core.orchestrator import generic_validate
def validate_hashnode(user):
url = "https://hashnode.com/utility/ajax/check-username"
+ show_url = "https://hashnode.com"
payload = {
"username": user,
@@ -33,7 +34,7 @@ def validate_hashnode(user):
else:
return Result.error("Invalid status code")
- return generic_validate(url, process, method="POST", json=payload, headers=headers, timeout=3.0)
+ return generic_validate(url, process, show_url=show_url, method="POST", json=payload, headers=headers, timeout=3.0)
if __name__ == "__main__":
user = input("Username?: ").strip()
@@ -44,4 +45,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/itch_io.py b/user_scanner/user_scan/creator/itch_io.py
index 9f43494..d8bf5eb 100644
--- a/user_scanner/user_scan/creator/itch_io.py
+++ b/user_scanner/user_scan/creator/itch_io.py
@@ -14,8 +14,9 @@ def validate_itch_io(user: str) -> Result:
return Result.error("Only use lowercase letters, numbers, underscores, and hyphens.")
url = f"https://itch.io/profile/{user}"
+ show_url = "https://itch.io"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -27,4 +28,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/kaggle.py b/user_scanner/user_scan/creator/kaggle.py
index b52a109..4fb42c1 100644
--- a/user_scanner/user_scan/creator/kaggle.py
+++ b/user_scanner/user_scan/creator/kaggle.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_kaggle(user):
url = f"https://www.kaggle.com/{user}"
+ show_url = "https://kaggle.com"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/medium.py b/user_scanner/user_scan/creator/medium.py
index 1f48e3a..e88ea0b 100644
--- a/user_scanner/user_scan/creator/medium.py
+++ b/user_scanner/user_scan/creator/medium.py
@@ -4,6 +4,7 @@ from user_scanner.core.result import Result
def validate_medium(user):
url = f"https://medium.com/@{user}"
+ show_url = "https://medium.com"
headers = {
'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
@@ -33,7 +34,7 @@ def validate_medium(user):
return Result.available()
return Result.error()
- return generic_validate(url, process, headers=headers)
+ return generic_validate(url, process, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -45,4 +46,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/patreon.py b/user_scanner/user_scan/creator/patreon.py
index 95be89a..50e4edf 100644
--- a/user_scanner/user_scan/creator/patreon.py
+++ b/user_scanner/user_scan/creator/patreon.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_patreon(user):
url = f"https://www.patreon.com/{user}"
+ show_url = "https://patreon.com"
- return status_validate(url, 404, 200, timeout=15.0, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, timeout=15.0, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/producthunt.py b/user_scanner/user_scan/creator/producthunt.py
index 7bc5a68..6b83ee6 100644
--- a/user_scanner/user_scan/creator/producthunt.py
+++ b/user_scanner/user_scan/creator/producthunt.py
@@ -11,6 +11,7 @@ def validate_producthunt(user: str) -> Result:
return Result.error("Only use letters, numbers, and underscores.")
url = f"https://www.producthunt.com/@{user}"
+ show_url = "https://producthunt.com"
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",
@@ -19,7 +20,7 @@ def validate_producthunt(user: str) -> Result:
'Accept-Language': "en-US,en;q=0.9",
}
- return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True)
if __name__ == "__main__":
@@ -31,4 +32,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/substack.py b/user_scanner/user_scan/creator/substack.py
index 2b559de..98cbe86 100644
--- a/user_scanner/user_scan/creator/substack.py
+++ b/user_scanner/user_scan/creator/substack.py
@@ -12,6 +12,7 @@ def validate_substack(user: str) -> Result:
return Result.error("Usernames can only contain lowercase letters and numbers")
url = f"https://{user}.substack.com"
+ show_url = "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",
@@ -21,7 +22,7 @@ def validate_substack(user: str) -> Result:
'priority': "u=0, i"
}
- return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True)
if __name__ == "__main__":
@@ -33,4 +34,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/creator/twitch.py b/user_scanner/user_scan/creator/twitch.py
index d5036d5..123716d 100644
--- a/user_scanner/user_scan/creator/twitch.py
+++ b/user_scanner/user_scan/creator/twitch.py
@@ -12,6 +12,7 @@ def validate_twitch(user: str) -> Result:
return Result.error("Username can only contain alphanumeric characters (a-z, 0-9)")
url = "https://gql.twitch.tv/gql"
+ show_url = "https://gql.twitch.tv"
payload = [
{
@@ -61,9 +62,7 @@ def validate_twitch(user: str) -> Result:
return Result.error("Unexpected GraphQL response structure or type.")
return generic_validate(
- url,
- process,
- headers=headers,
+ url, process, show_url=show_url, headers=headers,
method='POST',
content=json.dumps(payload),
follow_redirects=False
@@ -80,4 +79,4 @@ if __name__ == "__main__":
print("Unavailable!")
else:
reason = result.get_reason()
- print(f"Error occurred! Reason: {reason}")
+ print(f"Error occurred! Reason: {reason}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/bitbucket.py b/user_scanner/user_scan/dev/bitbucket.py
index e56d313..ca56ee6 100644
--- a/user_scanner/user_scan/dev/bitbucket.py
+++ b/user_scanner/user_scan/dev/bitbucket.py
@@ -14,8 +14,9 @@ def validate_bitbucket(user: str) -> Result:
return Result.error("Only use lowercase letters, numbers, hyphens, and underscores.")
url = f"https://bitbucket.org/{user}/"
+ show_url = "https://bitbucket.org"
- return status_validate(url, 404, [200, 302], follow_redirects=True)
+ return status_validate(url, 404, [200, 302], show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -31,4 +32,3 @@ if __name__ == "__main__":
-
diff --git a/user_scanner/user_scan/dev/codeberg.py b/user_scanner/user_scan/dev/codeberg.py
index d2f30d1..71bedf4 100644
--- a/user_scanner/user_scan/dev/codeberg.py
+++ b/user_scanner/user_scan/dev/codeberg.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_codeberg(user):
url = f"https://codeberg.org/{user}"
+ show_url = "https://codeberg.org"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/cratesio.py b/user_scanner/user_scan/dev/cratesio.py
index 6376864..14f5b34 100644
--- a/user_scanner/user_scan/dev/cratesio.py
+++ b/user_scanner/user_scan/dev/cratesio.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import status_validate
def validate_cratesio(user):
url = f"https://crates.io/api/v1/users/{user}"
+ show_url = "https://crates.io"
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",
@@ -11,7 +12,7 @@ def validate_cratesio(user):
'sec-fetch-mode': "cors",
}
- return status_validate(url, 404, 200, headers=headers)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -23,4 +24,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/dockerhub.py b/user_scanner/user_scan/dev/dockerhub.py
index bdd5316..e3828e6 100644
--- a/user_scanner/user_scan/dev/dockerhub.py
+++ b/user_scanner/user_scan/dev/dockerhub.py
@@ -3,13 +3,14 @@ from user_scanner.core.orchestrator import status_validate
def validate_dockerhub(user):
url = f"https://hub.docker.com/v2/users/{user}/"
+ show_url = "https://hub.docker.com"
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, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -21,4 +22,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/github.py b/user_scanner/user_scan/dev/github.py
index ee5aa62..5f549e4 100644
--- a/user_scanner/user_scan/dev/github.py
+++ b/user_scanner/user_scan/dev/github.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import generic_validate, Result
def validate_github(user):
url = f"https://github.com/signup_check/username?value={user}"
+ show_url = "https://github.com"
headers = {
'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
@@ -35,7 +36,7 @@ def validate_github(user):
return Result.error("Unexpected GitHub response report it via issues")
- return generic_validate(url, process, headers=headers)
+ return generic_validate(url, process, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -47,4 +48,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/gitlab.py b/user_scanner/user_scan/dev/gitlab.py
index d5346d0..1385ab1 100644
--- a/user_scanner/user_scan/dev/gitlab.py
+++ b/user_scanner/user_scan/dev/gitlab.py
@@ -4,6 +4,7 @@ from user_scanner.core.result import Result
def validate_gitlab(user):
url = f"https://gitlab.com/users/{user}/exists"
+ show_url = "https://gitlab.com"
headers = {
'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
@@ -25,7 +26,7 @@ def validate_gitlab(user):
return Result.taken()
return Result.error("Invalid status code")
- return generic_validate(url, process, headers=headers)
+ return generic_validate(url, process, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -37,4 +38,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/huggingface.py b/user_scanner/user_scan/dev/huggingface.py
index f2fe04c..dcfbbc1 100644
--- a/user_scanner/user_scan/dev/huggingface.py
+++ b/user_scanner/user_scan/dev/huggingface.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_huggingface(user):
url = f"https://huggingface.co/{user}"
+ show_url = "https://huggingface.co"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
diff --git a/user_scanner/user_scan/dev/launchpad.py b/user_scanner/user_scan/dev/launchpad.py
index 49af8c0..49274cc 100644
--- a/user_scanner/user_scan/dev/launchpad.py
+++ b/user_scanner/user_scan/dev/launchpad.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import status_validate
def validate_launchpad(user):
url = f"https://launchpad.net/~{user}"
+ show_url = "https://launchpad.net"
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",
@@ -11,7 +12,7 @@ def validate_launchpad(user):
'Upgrade-Insecure-Requests': "1",
}
- return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True)
if __name__ == "__main__":
@@ -23,4 +24,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/leetcode.py b/user_scanner/user_scan/dev/leetcode.py
index 128903a..28c718a 100644
--- a/user_scanner/user_scan/dev/leetcode.py
+++ b/user_scanner/user_scan/dev/leetcode.py
@@ -10,6 +10,7 @@ def validate_leetcode(user: str) -> Result:
return Result.error("Can only use letters, numbers, underscores, periods, or hyphens")
url = f"https://leetcode.com/u/{user}/"
+ show_url = "https://leetcode.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",
@@ -20,7 +21,7 @@ def validate_leetcode(user: str) -> Result:
'priority': "u=0, i"
}
- return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True)
if __name__ == "__main__":
@@ -32,4 +33,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/npmjs.py b/user_scanner/user_scan/dev/npmjs.py
index c39fc04..1275e23 100644
--- a/user_scanner/user_scan/dev/npmjs.py
+++ b/user_scanner/user_scan/dev/npmjs.py
@@ -10,9 +10,10 @@ def validate_npmjs(user):
return Result.error("Username cannot contain uppercase letters.")
url = f"https://www.npmjs.com/~{user}"
+ show_url = "https://npmjs.com"
- return status_validate(url, 404, 200, timeout=3.0, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, timeout=3.0, follow_redirects=True)
if __name__ == "__main__":
@@ -24,4 +25,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result}")
+ print(f"Error occurred! Reason: {result}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/replit.py b/user_scanner/user_scan/dev/replit.py
index 5a15d1c..2bdf069 100644
--- a/user_scanner/user_scan/dev/replit.py
+++ b/user_scanner/user_scan/dev/replit.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_replit(user):
url = f"https://replit.com/@{user}"
+ show_url = "https://replit.com"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/dev/sourceforge.py b/user_scanner/user_scan/dev/sourceforge.py
index 9ba2e1b..1d16635 100644
--- a/user_scanner/user_scan/dev/sourceforge.py
+++ b/user_scanner/user_scan/dev/sourceforge.py
@@ -14,8 +14,9 @@ def validate_sourceforge(user: str) -> Result:
return Result.error("Only use lowercase letters, numbers, and dashes.")
url = f"https://sourceforge.net/u/{user}/"
+ show_url = "https://sourceforge.net"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -27,4 +28,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/donation/buymeacoffee.py b/user_scanner/user_scan/donation/buymeacoffee.py
index 239fc9e..02ade24 100644
--- a/user_scanner/user_scan/donation/buymeacoffee.py
+++ b/user_scanner/user_scan/donation/buymeacoffee.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_buymeacoffee(user):
url = f"https://buymeacoffee.com/{user}"
+ show_url = "https://buymeacoffee.com"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/donation/liberapay.py b/user_scanner/user_scan/donation/liberapay.py
index 62e2f0d..8b0e179 100644
--- a/user_scanner/user_scan/donation/liberapay.py
+++ b/user_scanner/user_scan/donation/liberapay.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import status_validate
def validate_liberapay(user):
url = f"https://en.liberapay.com/{user}"
+ show_url = "https://en.liberapay.com"
headers = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
@@ -21,7 +22,7 @@ def validate_liberapay(user):
"upgrade-insecure-requests": "1",
}
- return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True)
if __name__ == "__main__":
@@ -33,4 +34,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/battlenet.py b/user_scanner/user_scan/gaming/battlenet.py
index af51faa..f4be256 100644
--- a/user_scanner/user_scan/gaming/battlenet.py
+++ b/user_scanner/user_scan/gaming/battlenet.py
@@ -29,6 +29,7 @@ def validate_battlenet(user: str) -> Result:
return Result.error("Must start with letter, only letters and numbers allowed")
url = f"https://overwatch.blizzard.com/en-us/search/account-by-name/{username}"
+ show_url = "https://overwatch.blizzard.com"
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",
@@ -54,7 +55,7 @@ def validate_battlenet(user: str) -> Result:
return Result.error("Failed to parse response")
return generic_validate(
- url, process, headers=headers, timeout=15.0, follow_redirects=True
+ url, process, show_url=show_url, headers=headers, timeout=15.0, follow_redirects=True
)
@@ -67,4 +68,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/chess_com.py b/user_scanner/user_scan/gaming/chess_com.py
index 9ce4b54..6ab1fd7 100644
--- a/user_scanner/user_scan/gaming/chess_com.py
+++ b/user_scanner/user_scan/gaming/chess_com.py
@@ -4,6 +4,7 @@ from user_scanner.core.result import Result
def validate_chess_com(user):
url = f"https://www.chess.com/callback/user/valid?username={user}"
+ show_url = "https://chess.com"
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",
@@ -23,7 +24,7 @@ def validate_chess_com(user):
return Result.taken()
return Result.error("Invalid status code")
- return generic_validate(url, process, headers=headers)
+ return generic_validate(url, process, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -35,4 +36,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/lichess.py b/user_scanner/user_scan/gaming/lichess.py
index 84902b2..b8d91cd 100644
--- a/user_scanner/user_scan/gaming/lichess.py
+++ b/user_scanner/user_scan/gaming/lichess.py
@@ -16,6 +16,7 @@ def validate_lichess(user: str) -> Result:
return Result.error("Username must end with a letter or a number")
url = f"https://lichess.org/api/player/autocomplete?term={user}&exists=1"
+ show_url = "https://lichess.org"
def process(response):
res_text = response.text.strip().lower()
@@ -25,7 +26,7 @@ def validate_lichess(user: str) -> Result:
return Result.available()
return Result.error("Unexpected error, report it via github issues")
- return generic_validate(url, process, timeout=3.0)
+ return generic_validate(url, process, show_url=show_url, timeout=3.0)
if __name__ == "__main__":
@@ -37,4 +38,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/minecraft.py b/user_scanner/user_scan/gaming/minecraft.py
index 8976d7d..a339a7d 100644
--- a/user_scanner/user_scan/gaming/minecraft.py
+++ b/user_scanner/user_scan/gaming/minecraft.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_minecraft(user):
url = f"https://api.mojang.com/minecraft/profile/lookup/name/{user}"
+ show_url = "https://mojang.com"
- return status_validate(url, 404, 200, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/monkeytype.py b/user_scanner/user_scan/gaming/monkeytype.py
index 81bfc15..de28e81 100644
--- a/user_scanner/user_scan/gaming/monkeytype.py
+++ b/user_scanner/user_scan/gaming/monkeytype.py
@@ -5,6 +5,7 @@ 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}"
+ show_url = "https://monkeytype.com"
headers = {
"User-Agent": (
@@ -41,7 +42,7 @@ def validate_monkeytype(user: str) -> Result:
return Result.error("Invalid status code")
- return generic_validate(url, process, headers=headers)
+ return generic_validate(url, process, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -53,4 +54,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/osu.py b/user_scanner/user_scan/gaming/osu.py
index e1c937c..0fa58e0 100644
--- a/user_scanner/user_scan/gaming/osu.py
+++ b/user_scanner/user_scan/gaming/osu.py
@@ -3,8 +3,9 @@ from user_scanner.core.orchestrator import status_validate
def validate_osu(user):
url = f"https://osu.ppy.sh/users/{user}"
+ show_url = "https://osu.ppy.sh"
- return status_validate(url, 404, [200, 302], follow_redirects=True)
+ return status_validate(url, 404, [200, 302], show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -16,4 +17,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/roblox.py b/user_scanner/user_scan/gaming/roblox.py
index c020204..78161ef 100644
--- a/user_scanner/user_scan/gaming/roblox.py
+++ b/user_scanner/user_scan/gaming/roblox.py
@@ -5,6 +5,7 @@ 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"
+ show_url = "https://users.roblox.com"
def process(response):
search_results = response.json() # api response
@@ -30,7 +31,7 @@ def validate_roblox(user: str) -> Result:
return Result.available()
# First try: Using roblox's API
- result = generic_validate(url, process, follow_redirects=True)
+ result = generic_validate(url, process, show_url=show_url, follow_redirects=True)
if result.get_reason() != "Too many requests":
return result
@@ -38,7 +39,7 @@ def validate_roblox(user: str) -> 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)
+ return status_validate(url, 404, [200, 302], show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -50,4 +51,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/gaming/steam.py b/user_scanner/user_scan/gaming/steam.py
index 34685e2..5ada37f 100644
--- a/user_scanner/user_scan/gaming/steam.py
+++ b/user_scanner/user_scan/gaming/steam.py
@@ -4,6 +4,7 @@ from user_scanner.core.result import Result
def validate_steam(user):
url = f"https://steamcommunity.com/id/{user}/"
+ show_url = "https://steamcommunity.com"
def process(response):
if response.status_code == 200:
@@ -14,7 +15,7 @@ def validate_steam(user):
return Result.error("Invalid status code")
- return generic_validate(url, process)
+ return generic_validate(url, process, show_url=show_url)
if __name__ == "__main__":
@@ -26,4 +27,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/shopping/vinted.py b/user_scanner/user_scan/shopping/vinted.py
index b9a608b..5d7cb23 100644
--- a/user_scanner/user_scan/shopping/vinted.py
+++ b/user_scanner/user_scan/shopping/vinted.py
@@ -9,6 +9,7 @@ def validate_vinted(user: str):
user = user.lower().strip()
url = f"https://www.vinted.pt/member/general/search?search_text={user}"
+ show_url = "https://vinted.pt"
if not re.match(r"^[a-zA-Z0-9_.-]+$", user):
return Result.error(
@@ -34,9 +35,9 @@ def validate_vinted(user: str):
else:
return Result.taken()
- return generic_validate(url, process)
+ return generic_validate(url, process, show_url=show_url)
if __name__ == "__main__":
user = input("Username?: ").strip()
- validate_vinted(user).show()
+ validate_vinted(user).show()
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/bluesky.py b/user_scanner/user_scan/social/bluesky.py
index 690e667..968b933 100644
--- a/user_scanner/user_scan/social/bluesky.py
+++ b/user_scanner/user_scan/social/bluesky.py
@@ -5,6 +5,7 @@ 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"
+ show_url = "https://bsky.social"
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",
@@ -39,7 +40,7 @@ def validate_bluesky(user):
return Result.error("Invalid status code!")
- return generic_validate(url, process, headers=headers, params=params, timeout=15.0)
+ return generic_validate(url, process, show_url=show_url, headers=headers, params=params, timeout=15.0)
if __name__ == "__main__":
@@ -51,4 +52,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/discord.py b/user_scanner/user_scan/social/discord.py
index 48e0738..24d7f01 100644
--- a/user_scanner/user_scan/social/discord.py
+++ b/user_scanner/user_scan/social/discord.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import generic_validate
def validate_discord(user):
url = "https://discord.com/api/v9/unique-username/username-attempt-unauthed"
+ show_url = "https://discord.com"
headers = {
"authority": "discord.com",
@@ -24,7 +25,7 @@ def validate_discord(user):
return Result.available()
return Result.error("Invalid status code")
- return generic_validate(url, process, method="POST", json=data, headers=headers, timeout=3.0)
+ return generic_validate(url, process, show_url=show_url, method="POST", json=data, headers=headers, timeout=3.0)
if __name__ == "__main__":
@@ -36,4 +37,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/instagram.py b/user_scanner/user_scan/social/instagram.py
index 2030e0b..a71e26e 100644
--- a/user_scanner/user_scan/social/instagram.py
+++ b/user_scanner/user_scan/social/instagram.py
@@ -2,6 +2,7 @@ from user_scanner.core.orchestrator import status_validate
def validate_instagram(user):
url = "https://www.instagram.com/api/v1/users/web_profile_info/"
+ show_url = "https://instagram.com"
params = {
'username': user
@@ -28,7 +29,7 @@ def validate_instagram(user):
'priority': "u=1, i"
}
- return status_validate(url, 404, 200, params=params, headers=headers, http2=True)
+ return status_validate(url, 404, 200, show_url=show_url, params=params, headers=headers, http2=True)
if __name__ == "__main__":
@@ -40,4 +41,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! {result.get_reason()}")
+ print(f"Error occurred! {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/mastodon.py b/user_scanner/user_scan/social/mastodon.py
index 7cd6b75..90d0307 100644
--- a/user_scanner/user_scan/social/mastodon.py
+++ b/user_scanner/user_scan/social/mastodon.py
@@ -28,4 +28,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/pinterest.py b/user_scanner/user_scan/social/pinterest.py
index bb5dcfb..6f50121 100644
--- a/user_scanner/user_scan/social/pinterest.py
+++ b/user_scanner/user_scan/social/pinterest.py
@@ -3,6 +3,7 @@ from user_scanner.core.result import Result
def validate_pinterest(user):
url = f"https://www.pinterest.com/{user}/"
+ show_url = "https://pinterest.com"
def process(response):
if response.status_code == 200:
@@ -13,7 +14,7 @@ def validate_pinterest(user):
else:
return Result.error("Invalid status code")
- return generic_validate(url, process, follow_redirects=True)
+ return generic_validate(url, process, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -25,4 +26,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/reddit.py b/user_scanner/user_scan/social/reddit.py
index dfd5c04..f187e58 100644
--- a/user_scanner/user_scan/social/reddit.py
+++ b/user_scanner/user_scan/social/reddit.py
@@ -4,6 +4,7 @@ from user_scanner.core.result import Result
def validate_reddit(user):
url = f"https://www.reddit.com/user/{user}/"
+ show_url = "https://reddit.com"
def process(response):
if response.status_code == 200:
@@ -14,7 +15,7 @@ def validate_reddit(user):
else:
return Result.error()
- return generic_validate(url, process, follow_redirects=True)
+ return generic_validate(url, process, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -26,4 +27,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/snapchat.py b/user_scanner/user_scan/social/snapchat.py
index 6c7a455..24b60d9 100644
--- a/user_scanner/user_scan/social/snapchat.py
+++ b/user_scanner/user_scan/social/snapchat.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import status_validate
def validate_snapchat(user):
url = f"https://www.snapchat.com/@{user}"
+ show_url = "https://snapchat.com"
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",
@@ -20,7 +21,7 @@ def validate_snapchat(user):
'priority': "u=0, i"
}
- return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, follow_redirects=True)
if __name__ == "__main__":
@@ -32,4 +33,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/soundcloud.py b/user_scanner/user_scan/social/soundcloud.py
index 62d397c..8bb903d 100644
--- a/user_scanner/user_scan/social/soundcloud.py
+++ b/user_scanner/user_scan/social/soundcloud.py
@@ -4,6 +4,7 @@ from user_scanner.core.result import Result
def validate_soundcloud(user):
url = f"https://soundcloud.com/{user}"
+ show_url = "https://soundcloud.com"
def process(response):
if response.status_code == 404:
@@ -23,7 +24,7 @@ def validate_soundcloud(user):
return Result.error()
- return generic_validate(url, process, follow_redirects=True)
+ return generic_validate(url, process, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -35,4 +36,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/telegram.py b/user_scanner/user_scan/social/telegram.py
index d84295b..e95257a 100644
--- a/user_scanner/user_scan/social/telegram.py
+++ b/user_scanner/user_scan/social/telegram.py
@@ -5,6 +5,7 @@ from user_scanner.core.result import Result
def validate_telegram(user: str) -> Result:
url = f"https://t.me/{user}"
+ show_url = "https://t.me"
def process(r):
if r.status_code == 200:
@@ -14,7 +15,7 @@ def validate_telegram(user: str) -> Result:
return Result.available()
return Result.error()
- return generic_validate(url, process, follow_redirects=True)
+ return generic_validate(url, process, show_url=show_url, follow_redirects=True)
if __name__ == "__main__":
@@ -26,4 +27,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/threads.py b/user_scanner/user_scan/social/threads.py
index d63bcce..e55bc37 100644
--- a/user_scanner/user_scan/social/threads.py
+++ b/user_scanner/user_scan/social/threads.py
@@ -2,6 +2,7 @@ from user_scanner.core.orchestrator import status_validate
def validate_instagram(user):
url = f"https://www.threads.net/api/v1/users/web_profile_info/?username={user}"
+ show_url = "https://threads.net"
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",
@@ -13,7 +14,7 @@ def validate_instagram(user):
'Referer': f"https://www.threads.net/@{user}",
}
- return status_validate(url, 404, 200, headers=headers, http2=True)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers, http2=True)
if __name__ == "__main__":
@@ -25,4 +26,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/tiktok.py b/user_scanner/user_scan/social/tiktok.py
index 2faec7f..bad85c4 100644
--- a/user_scanner/user_scan/social/tiktok.py
+++ b/user_scanner/user_scan/social/tiktok.py
@@ -26,6 +26,7 @@ def validate_tiktok(user: str) -> Result:
}
url = f"https://www.tiktok.com/@{user}"
+ show_url = "https://tiktok.com"
def process(response) -> Result:
if response.status_code == 200:
@@ -35,7 +36,7 @@ def validate_tiktok(user: str) -> Result:
return Result.taken()
return Result.error("Unable to load tiktok")
- return generic_validate(url, process, headers=headers)
+ return generic_validate(url, process, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -47,4 +48,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print(f"Error occurred! Reason: {result.get_reason()}")
+ print(f"Error occurred! Reason: {result.get_reason()}")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/x.py b/user_scanner/user_scan/social/x.py
index 6bc9809..38157c8 100644
--- a/user_scanner/user_scan/social/x.py
+++ b/user_scanner/user_scan/social/x.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import generic_validate
def validate_x(user):
url = "https://api.twitter.com/i/users/username_available.json"
+ show_url = "https://x.com"
params = {
"username": user,
@@ -32,7 +33,7 @@ def validate_x(user):
return Result.error()
- return generic_validate(url, process, params=params, headers=headers)
+ return generic_validate(url, process, show_url=show_url, params=params, headers=headers)
if __name__ == "__main__":
user = input("Username?: ").strip()
@@ -43,4 +44,4 @@ if __name__ == "__main__":
elif result == 0:
print("Unavailable!")
else:
- print("Error occurred!")
+ print("Error occurred!")
\ No newline at end of file
diff --git a/user_scanner/user_scan/social/youtube.py b/user_scanner/user_scan/social/youtube.py
index 341463f..8a46209 100644
--- a/user_scanner/user_scan/social/youtube.py
+++ b/user_scanner/user_scan/social/youtube.py
@@ -3,6 +3,7 @@ from user_scanner.core.orchestrator import status_validate, Result
def validate_youtube(user) -> Result:
url = f"https://m.youtube.com/@{user}"
+ show_url = "https://m.youtube.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",
@@ -33,7 +34,7 @@ def validate_youtube(user) -> Result:
}
- return status_validate(url, 404, 200, headers=headers)
+ return status_validate(url, 404, 200, show_url=show_url, headers=headers)
if __name__ == "__main__":
@@ -47,4 +48,3 @@ if __name__ == "__main__":
else:
reason = result.get_reason()
print(f"Error occurred! Reason: {reason}")
-