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-agent rotation in existing modules' headers

alyssazieli3e58c9d1494f4
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+ <settings>
+ <option name="USE_PROJECT_PROFILE" value="false" />
+ <version value="1.0" />
+ </settings>
+</component>
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..cd9f476
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="Black">
+ <option name="sdkName" value="Python 3.12 (user-scanner)" />
+ </component>
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (user-scanner)" project-jdk-type="Python SDK" />
+</project>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..86e4e3f
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module fileurl="file://$PROJECT_DIR$/.idea/user-scanner.iml" filepath="$PROJECT_DIR$/.idea/user-scanner.iml" />
+ </modules>
+ </component>
+</project>
\ No newline at end of file
diff --git a/.idea/user-scanner.iml b/.idea/user-scanner.iml
new file mode 100644
index 0000000..e85cfa8
--- /dev/null
+++ b/.idea/user-scanner.iml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+ <component name="NewModuleRootManager">
+ <content url="file://$MODULE_DIR$">
+ <excludeFolder url="file://$MODULE_DIR$/.venv" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ </component>
+ <component name="PyDocumentationSettings">
+ <option name="format" value="PLAIN" />
+ <option name="myDocStringFormat" value="Plain" />
+ </component>
+ <component name="TestRunnerService">
+ <option name="PROJECT_TEST_RUNNER" value="py.test" />
+ </component>
+</module>
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="VcsDirectoryMappings">
+ <mapping directory="" vcs="Git" />
+ </component>
+</project>
\ No newline at end of file
diff --git a/user_scanner/core/helpers.py b/user_scanner/core/helpers.py
index d18ebc4..cf9deba 100644
--- a/user_scanner/core/helpers.py
+++ b/user_scanner/core/helpers.py
@@ -199,3 +199,45 @@ def get_proxy_count() -> int:
return _proxy_manager.count()
return 0
+
+# Function to return random user agent
+
+def get_random_user_agent():
+ """List of modern User-Agents:
+ Samsung Galaxy S25, Samsung Galaxy S24 Ultra, Samsung Flip, Google Pixel 9 Pro,
+ Google Pixel 9, Google Pixel 8 Pro, Google Pixel 8, Motorola Moto G (2025), Redmi Note 13 4G,
+ Apple iPhone 16e, Apple iPhone 16 Pro, Apple iPhone 16 Pro Max, Apple iPhone 16,
+ Apple iPhone 16 Plus, Apple iPhone 15 Pro, Apple iPhone 14, Microsoft Lumia 650,
+ Apple iPad Pro (11 5th Gen), Samsung Galaxy Tab Active5 5G, Amazon Fire HD 8 (2024, 12th Gen),
+ Google Pixel C, Windows 10-based PC using Edge browser,
+ Chrome OS-based laptop using Chrome browser (Chromebook),
+ Mac OS X-based computer using a Safari browser, Linux-based PC using a Firefox browser"""
+ agents = ["Mozilla/5.0 (Linux; Android 15; SM-S931B Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/127.0.6533.103 Mobile Safari/537.36",
+ "Mozila/5.0 (Linux; Android 14; SM-S928B/DS) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.230 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 14; SM-F9560 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/127.0.6533.103 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 14; Pixel 9 Pro Build/AD1A.240418.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.54 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 14; Pixel 9 Build/AD1A.240411.003.A5; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.54 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 15; Pixel 8 Pro Build/AP4A.250105.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 15; Pixel 8 Build/AP4A.250105.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 15; moto g - 2025 Build/V1VK35.22-13-2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36",
+ "Mozilla/5.0 (Linux; Android 13; 23129RAA4G Build/TKQ1.221114.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36",
+ "Mozilla/5.0 (iPhone17,5; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 FireKeepers/1.7.0",
+ "Mozilla/5.0 (iPhone17,1; CPU iPhone OS 18_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Mohegan Sun/4.7.4",
+ "Mozilla/5.0 (iPhone17,2; CPU iPhone OS 18_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Resorts/4.5.2",
+ "Mozilla/5.0 (iPhone17,3; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 FireKeepers/1.6.1",
+ "Mozilla/5.0 (iPhone17,4; CPU iPhone OS 18_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Resorts/4.7.5",
+ "Mozilla/5.0 (iPhone16,2; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Resorts/4.7.5",
+ "Mozilla/5.0 (iPhone14,7; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Mohegan Sun/4.7.3",
+ "Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1; Microsoft; RM-1152) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Mobile Safari/537.36 Edge/15.15254",
+ "Mozilla/5.0 (iPad16,3; CPU OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Tropicana_NJ/5.7.1",
+ "Dalvik/2.1.0 (Linux; U; Android 14; SM-X306B Build/UP1A.231005.007)",
+ "Dalvik/2.1.0 (Linux; U; Android 11; KFRASWI Build/RS8332.3115N)",
+ "Mozilla/5.0 (Linux; Android 7.0; Pixel C Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Safari/537.36",
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0",
+ "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
+ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15",
+ "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1"]
+ """retrun random"""
+ random_agent = random.choice(agents)
+ return random_agent
+
diff --git a/user_scanner/email_scan/adult/babestation.py b/user_scanner/email_scan/adult/babestation.py
index 42d86b0..0140547 100644
--- a/user_scanner/email_scan/adult/babestation.py
+++ b/user_scanner/email_scan/adult/babestation.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://www.babestation.tv/user/send/username-reminder"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Content-Type': "application/json",
'x-requested-with': "XMLHttpRequest",
diff --git a/user_scanner/email_scan/adult/flirtbate.py b/user_scanner/email_scan/adult/flirtbate.py
index 8e6f892..9c11d9e 100644
--- a/user_scanner/email_scan/adult/flirtbate.py
+++ b/user_scanner/email_scan/adult/flirtbate.py
@@ -1,11 +1,12 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://api.flirtbate.com/api/v1/customer/reset-password-email"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Content-Type': "application/json",
'origin': "https://flirtbate.com",
diff --git a/user_scanner/email_scan/adult/made_porn.py b/user_scanner/email_scan/adult/made_porn.py
index 75ce741..736a39b 100644
--- a/user_scanner/email_scan/adult/made_porn.py
+++ b/user_scanner/email_scan/adult/made_porn.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://made.porn/endpoint/api/json/change-password"
@@ -9,7 +10,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Origin': "https://made.porn",
'Referer': "https://made.porn/login",
diff --git a/user_scanner/email_scan/adult/pornhub.py b/user_scanner/email_scan/adult/pornhub.py
index 155cf2b..72314bf 100644
--- a/user_scanner/email_scan/adult/pornhub.py
+++ b/user_scanner/email_scan/adult/pornhub.py
@@ -1,5 +1,7 @@
import httpx
import re
+
+from user_scanner.core.helpers import get_random_user_agent
from user_scanner.core.result import Result
async def _check(email: str) -> Result:
@@ -7,7 +9,7 @@ async def _check(email: str) -> Result:
check_api = f"{base_url}/api/v1/user/create_account_check"
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",
+ "user-agent": get_random_user_agent(),
"x-requested-with": "XMLHttpRequest",
"origin": base_url,
"referer": base_url + "/",
diff --git a/user_scanner/email_scan/adult/sexvid.py b/user_scanner/email_scan/adult/sexvid.py
index 8816e7e..c34e010 100644
--- a/user_scanner/email_scan/adult/sexvid.py
+++ b/user_scanner/email_scan/adult/sexvid.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://www.sexvid.pro/reset-password/"
@@ -14,7 +15,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "*/*",
'X-Requested-With': "XMLHttpRequest",
'Origin': "https://www.sexvid.pro",
diff --git a/user_scanner/email_scan/adult/superporn.py b/user_scanner/email_scan/adult/superporn.py
index 97cfb82..69a882e 100644
--- a/user_scanner/email_scan/adult/superporn.py
+++ b/user_scanner/email_scan/adult/superporn.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://api.superporn.com/signup/check-email"
@@ -10,7 +11,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/javascript, */*; q=0.01",
'Origin': "https://www.superporn.com",
'Referer': "https://www.superporn.com/signup",
diff --git a/user_scanner/email_scan/adult/xnxx.py b/user_scanner/email_scan/adult/xnxx.py
index 5bb31d0..8c6b02e 100644
--- a/user_scanner/email_scan/adult/xnxx.py
+++ b/user_scanner/email_scan/adult/xnxx.py
@@ -1,11 +1,12 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://www.xnxx.com/account/checkemail"
params = {'email': email}
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",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/javascript, */*; q=0.01",
'Accept-Encoding': "identity",
'X-Requested-With': "XMLHttpRequest",
diff --git a/user_scanner/email_scan/adult/xvideos.py b/user_scanner/email_scan/adult/xvideos.py
index 3ab5c46..9166054 100644
--- a/user_scanner/email_scan/adult/xvideos.py
+++ b/user_scanner/email_scan/adult/xvideos.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -7,7 +8,7 @@ async def _check(email: str) -> Result:
params = {'email': email}
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",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/javascript, */*; q=0.01",
'Accept-Encoding': "identity",
'X-Requested-With': "XMLHttpRequest",
diff --git a/user_scanner/email_scan/community/stackoverflow.py b/user_scanner/email_scan/community/stackoverflow.py
index 076e528..c89a526 100644
--- a/user_scanner/email_scan/community/stackoverflow.py
+++ b/user_scanner/email_scan/community/stackoverflow.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
async with httpx.AsyncClient(http2=False, follow_redirects=True) as client:
@@ -15,7 +16,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'sec-ch-ua-platform': '"Linux"',
diff --git a/user_scanner/email_scan/creator/adobe.py b/user_scanner/email_scan/creator/adobe.py
index 1eaef61..a4c84d6 100644
--- a/user_scanner/email_scan/creator/adobe.py
+++ b/user_scanner/email_scan/creator/adobe.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -12,7 +13,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Content-Type': "application/json",
'x-ims-clientid': "BehanceWebSusi1",
diff --git a/user_scanner/email_scan/creator/flickr.py b/user_scanner/email_scan/creator/flickr.py
index b105fd5..1dfebd8 100644
--- a/user_scanner/email_scan/creator/flickr.py
+++ b/user_scanner/email_scan/creator/flickr.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://cognito-idp.us-east-1.amazonaws.com"
@@ -21,7 +22,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'x-amz-target': "AWSCognitoIdentityProviderService.SignUp",
'content-type': "application/x-amz-json-1.1",
'origin': "https://identity.flickr.com",
diff --git a/user_scanner/email_scan/creator/gumroad.py b/user_scanner/email_scan/creator/gumroad.py
index 1d3a500..3d66814 100644
--- a/user_scanner/email_scan/creator/gumroad.py
+++ b/user_scanner/email_scan/creator/gumroad.py
@@ -1,6 +1,7 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -8,7 +9,7 @@ async def _check(email: str) -> Result:
try:
url1 = "https://gumroad.com/users/forgot_password/new"
headers1 = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
'Accept-Encoding': "gzip, deflate, br, zstd",
'sec-ch-ua': '"Not(A:Brand";v="8", "Chromium";v="144", "Google Chrome";v="144"',
@@ -42,7 +43,7 @@ async def _check(email: str) -> Result:
}
headers2 = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html, application/xhtml+xml",
'Accept-Encoding': "gzip, deflate, br, zstd",
'Content-Type': "application/json",
diff --git a/user_scanner/email_scan/creator/patreon.py b/user_scanner/email_scan/creator/patreon.py
index e8ce19e..34d8c70 100644
--- a/user_scanner/email_scan/creator/patreon.py
+++ b/user_scanner/email_scan/creator/patreon.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -18,7 +19,7 @@ async def _check(email: str) -> Result:
"\",\"allow_account_creation\":false},\"auth_context\":\"auth\",\"ru\":\"https://www.patreon.com/home\"},\"relationships\":{}}}"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "identity",
'content-type': "application/vnd.api+json",
'origin': "https://www.patreon.com"
diff --git a/user_scanner/email_scan/dev/codecademy.py b/user_scanner/email_scan/dev/codecademy.py
index a4977a4..3a2287a 100644
--- a/user_scanner/email_scan/dev/codecademy.py
+++ b/user_scanner/email_scan/dev/codecademy.py
@@ -1,11 +1,12 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': 'application/json',
'Accept-Language': 'en-US,en;q=0.9',
'Referer': 'https://www.codecademy.com/register?redirect=%2F',
diff --git a/user_scanner/email_scan/dev/codepen.py b/user_scanner/email_scan/dev/codepen.py
index 47138a0..fc88f2f 100644
--- a/user_scanner/email_scan/dev/codepen.py
+++ b/user_scanner/email_scan/dev/codepen.py
@@ -1,11 +1,12 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': '*/*',
'Accept-Language': 'en-US,en;q=0.9',
'Referer': 'https://codepen.io/accounts/signup/user/free',
diff --git a/user_scanner/email_scan/dev/codewars.py b/user_scanner/email_scan/dev/codewars.py
index 48467cf..05efd65 100644
--- a/user_scanner/email_scan/dev/codewars.py
+++ b/user_scanner/email_scan/dev/codewars.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://www.codewars.com/join"
@@ -22,7 +23,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
'Origin': "https://www.codewars.com",
'Referer': "https://www.codewars.com/join",
diff --git a/user_scanner/email_scan/dev/devrant.py b/user_scanner/email_scan/dev/devrant.py
index c92a996..4da0f64 100644
--- a/user_scanner/email_scan/dev/devrant.py
+++ b/user_scanner/email_scan/dev/devrant.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'X-Requested-With': 'XMLHttpRequest',
diff --git a/user_scanner/email_scan/dev/envato.py b/user_scanner/email_scan/dev/envato.py
index 678ff18..df4b1a3 100644
--- a/user_scanner/email_scan/dev/envato.py
+++ b/user_scanner/email_scan/dev/envato.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://account.envato.com/api/public/validate_email"
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Content-Type': "application/json",
'x-client-version': "3.6.0",
diff --git a/user_scanner/email_scan/dev/github.py b/user_scanner/email_scan/dev/github.py
index f6033b5..67157d7 100644
--- a/user_scanner/email_scan/dev/github.py
+++ b/user_scanner/email_scan/dev/github.py
@@ -1,6 +1,7 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -13,7 +14,7 @@ async def _check(email: str) -> Result:
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Linux"',
'upgrade-insecure-requests': '1',
- 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36',
+ 'user-agent': get_random_user_agent(),
'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',
'sec-fetch-site': 'cross-site',
'sec-fetch-mode': 'navigate',
@@ -42,7 +43,7 @@ async def _check(email: str) -> Result:
}
headers2 = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "gzip, deflate, br, zstd",
'sec-ch-ua-platform': '"Linux"',
'sec-ch-ua': '"Not(A:Brand";v="8", "Chromium";v="144", "Google Chrome";v="144"',
diff --git a/user_scanner/email_scan/dev/huggingface.py b/user_scanner/email_scan/dev/huggingface.py
index 9b06ca0..93c5c1b 100644
--- a/user_scanner/email_scan/dev/huggingface.py
+++ b/user_scanner/email_scan/dev/huggingface.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://huggingface.co/api/check-user-email"
params = {'email': email}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "identity",
'referer': "https://huggingface.co/join",
'priority': "u=1, i"
diff --git a/user_scanner/email_scan/dev/leetcode.py b/user_scanner/email_scan/dev/leetcode.py
index 30b53ab..cfd7d80 100644
--- a/user_scanner/email_scan/dev/leetcode.py
+++ b/user_scanner/email_scan/dev/leetcode.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://leetcode.com/graphql/"
@@ -22,7 +23,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'x-csrftoken': static_csrf,
'Origin': "https://leetcode.com",
diff --git a/user_scanner/email_scan/dev/replit.py b/user_scanner/email_scan/dev/replit.py
index ddfc5d9..f62d1e2 100644
--- a/user_scanner/email_scan/dev/replit.py
+++ b/user_scanner/email_scan/dev/replit.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://replit.com/data/user/exists"
@@ -10,7 +11,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Accept-Encoding': "identity",
'Content-Type': "application/json",
diff --git a/user_scanner/email_scan/dev/wordpress.py b/user_scanner/email_scan/dev/wordpress.py
index 08d8615..ccedb31 100644
--- a/user_scanner/email_scan/dev/wordpress.py
+++ b/user_scanner/email_scan/dev/wordpress.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -10,7 +11,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'sec-ch-ua-platform': '"Linux"',
'sec-ch-ua': '"Not(A:Brand";v="8", "Chromium";v="144", "Google Chrome";v="144"',
diff --git a/user_scanner/email_scan/dev/xda.py b/user_scanner/email_scan/dev/xda.py
index 60c510f..95cfb7b 100644
--- a/user_scanner/email_scan/dev/xda.py
+++ b/user_scanner/email_scan/dev/xda.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://www.xda-developers.com/check-user-exists/"
@@ -10,7 +11,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Referer': "https://www.xda-developers.com/",
}
diff --git a/user_scanner/email_scan/entertainment/appletv.py b/user_scanner/email_scan/entertainment/appletv.py
index 0f8b7e1..df87e4c 100644
--- a/user_scanner/email_scan/entertainment/appletv.py
+++ b/user_scanner/email_scan/entertainment/appletv.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://idmsa.apple.com/appleauth/auth/federate"
params = {'isRememberMeEnabled': "false"}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/javascript, */*; q=0.01",
'Content-Type': "application/json",
'X-Apple-Domain-Id': "2",
diff --git a/user_scanner/email_scan/entertainment/justwatch.py b/user_scanner/email_scan/entertainment/justwatch.py
index 8a5a35c..53b2708 100644
--- a/user_scanner/email_scan/entertainment/justwatch.py
+++ b/user_scanner/email_scan/entertainment/justwatch.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -8,7 +9,7 @@ async def _check(email: str) -> Result:
'key': "AIzaSyDv6JIzdDvbTBS-JWdR4Kl22UvgWGAyuo8"
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'x-client-version': "Chrome/JsCore/10.14.1/FirebaseCore-web",
'origin': "https://www.justwatch.com",
diff --git a/user_scanner/email_scan/entertainment/letterboxd.py b/user_scanner/email_scan/entertainment/letterboxd.py
index 27b3824..017cd80 100644
--- a/user_scanner/email_scan/entertainment/letterboxd.py
+++ b/user_scanner/email_scan/entertainment/letterboxd.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -7,7 +8,7 @@ async def _check(email: str) -> Result:
register_url = "https://letterboxd.com/user/standalone/register.do"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/javascript, */*; q=0.01",
'X-Requested-With': "XMLHttpRequest",
'Origin': "https://letterboxd.com",
diff --git a/user_scanner/email_scan/entertainment/netflix.py b/user_scanner/email_scan/entertainment/netflix.py
index ccfdf0c..4b334fe 100644
--- a/user_scanner/email_scan/entertainment/netflix.py
+++ b/user_scanner/email_scan/entertainment/netflix.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
'Accept-Language': "en-US,en;q=0.9",
'Origin': "https://www.netflix.com",
diff --git a/user_scanner/email_scan/entertainment/stremio.py b/user_scanner/email_scan/entertainment/stremio.py
index 74ad321..a09d939 100644
--- a/user_scanner/email_scan/entertainment/stremio.py
+++ b/user_scanner/email_scan/entertainment/stremio.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://api.strem.io/api/login"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'Origin': "https://www.stremio.com",
'Referer': "https://www.stremio.com/",
diff --git a/user_scanner/email_scan/gaming/addictinggames.py b/user_scanner/email_scan/gaming/addictinggames.py
index 58c8f6b..f094c6d 100644
--- a/user_scanner/email_scan/gaming/addictinggames.py
+++ b/user_scanner/email_scan/gaming/addictinggames.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://prod.addictinggames.com/user/registerpass"
@@ -17,7 +18,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Content-Type': "application/json",
'Origin': "https://www.addictinggames.com",
diff --git a/user_scanner/email_scan/gaming/chess_com.py b/user_scanner/email_scan/gaming/chess_com.py
index fcf2225..e30c471 100644
--- a/user_scanner/email_scan/gaming/chess_com.py
+++ b/user_scanner/email_scan/gaming/chess_com.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
async with httpx.AsyncClient(http2=True) as client:
@@ -11,7 +12,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Accept-Encoding': "identity",
'Content-Type': "application/json",
diff --git a/user_scanner/email_scan/gaming/crazygames.py b/user_scanner/email_scan/gaming/crazygames.py
index 374236b..99d143e 100644
--- a/user_scanner/email_scan/gaming/crazygames.py
+++ b/user_scanner/email_scan/gaming/crazygames.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://identitytoolkit.googleapis.com/v1/accounts:createAuthUri"
@@ -15,7 +16,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'origin': "https://www.crazygames.com",
'referer': "https://www.crazygames.com/",
diff --git a/user_scanner/email_scan/gaming/ubisoft.py b/user_scanner/email_scan/gaming/ubisoft.py
index 7eee5e3..5b54eb8 100644
--- a/user_scanner/email_scan/gaming/ubisoft.py
+++ b/user_scanner/email_scan/gaming/ubisoft.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -22,7 +23,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Accept-Encoding': "gzip, deflate, br, zstd",
'Content-Type': "application/json",
diff --git a/user_scanner/email_scan/hosting/render.py b/user_scanner/email_scan/hosting/render.py
index 064ef8a..4bcbc31 100644
--- a/user_scanner/email_scan/hosting/render.py
+++ b/user_scanner/email_scan/hosting/render.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://api.render.com/graphql"
@@ -25,7 +26,7 @@ async def _check(email: str) -> Result:
}
headers = {
- "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ "User-Agent": get_random_user_agent(),
"Content-Type": "application/json",
"origin": "https://dashboard.render.com",
"referer": "https://dashboard.render.com/register",
diff --git a/user_scanner/email_scan/jobs/freelancer.py b/user_scanner/email_scan/jobs/freelancer.py
index 7bf76c4..0124007 100644
--- a/user_scanner/email_scan/jobs/freelancer.py
+++ b/user_scanner/email_scan/jobs/freelancer.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -13,7 +14,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
+ 'User-Agent': get_random_user_agent(),
'Accept': 'application/json, text/plain, */*',
'Content-Type': 'application/json',
'Origin': 'https://www.freelancer.com',
diff --git a/user_scanner/email_scan/learning/alison.py b/user_scanner/email_scan/learning/alison.py
index 6d8ea2a..1cdf7d9 100644
--- a/user_scanner/email_scan/learning/alison.py
+++ b/user_scanner/email_scan/learning/alison.py
@@ -1,12 +1,13 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://alison.com/register"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
'Origin': "https://alison.com",
'Referer': "https://alison.com/",
diff --git a/user_scanner/email_scan/learning/coursera.py b/user_scanner/email_scan/learning/coursera.py
index a46d108..c350366 100644
--- a/user_scanner/email_scan/learning/coursera.py
+++ b/user_scanner/email_scan/learning/coursera.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -11,7 +12,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'X-Requested-With': "XMLHttpRequest",
'X-Coursera-Application': "front-page",
diff --git a/user_scanner/email_scan/learning/duolingo.py b/user_scanner/email_scan/learning/duolingo.py
index c798432..369be78 100644
--- a/user_scanner/email_scan/learning/duolingo.py
+++ b/user_scanner/email_scan/learning/duolingo.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
'authority': 'www.duolingo.com',
'Accept': 'application/json, text/plain, */*',
'Accept-Language': 'en-US,en;q=0.9',
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0",
+ 'User-Agent': get_random_user_agent(),
'Referer': 'https://www.duolingo.com/',
}
diff --git a/user_scanner/email_scan/music/spotify.py b/user_scanner/email_scan/music/spotify.py
index bcad9ba..20a0c1a 100644
--- a/user_scanner/email_scan/music/spotify.py
+++ b/user_scanner/email_scan/music/spotify.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -8,7 +9,7 @@ async def _check(email: str) -> Result:
try:
get_url = "https://www.spotify.com/in-en/signup"
get_headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'sec-ch-ua': "\"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"144\", \"Google Chrome\";v=\"144\"",
@@ -53,7 +54,7 @@ async def _check(email: str) -> Result:
}
post_headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "identity",
'Content-Type': "application/json",
'sec-ch-ua-platform': "\"Linux\"",
diff --git a/user_scanner/email_scan/news/aljazeera.py b/user_scanner/email_scan/news/aljazeera.py
index 773b253..8980660 100644
--- a/user_scanner/email_scan/news/aljazeera.py
+++ b/user_scanner/email_scan/news/aljazeera.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -16,7 +17,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'Origin': "https://www.aljazeera.com",
'Referer': "https://www.aljazeera.com/",
diff --git a/user_scanner/email_scan/news/bbc.py b/user_scanner/email_scan/news/bbc.py
index 291ca82..781b848 100644
--- a/user_scanner/email_scan/news/bbc.py
+++ b/user_scanner/email_scan/news/bbc.py
@@ -1,13 +1,14 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
login_url = "https://account.bbc.com/auth/identifier/signin?realm=%2F&clientId=Account&action=register&ptrt=https%3A%2F%2Fwww.bbc.com%2F&userOrigin=BBCS_BBC&purpose=free"
check_url = "https://account.bbc.com/auth/identifier/check"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Origin': "https://account.bbc.com",
}
diff --git a/user_scanner/email_scan/news/cnn.py b/user_scanner/email_scan/news/cnn.py
index 8d3b7d2..c7dec97 100644
--- a/user_scanner/email_scan/news/cnn.py
+++ b/user_scanner/email_scan/news/cnn.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://audience.cnn.com/core/api/1/identity"
@@ -16,7 +17,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'x-client-application': "Android|Android 10|Chrome 144.0.0.0",
'Origin': "https://edition.cnn.com",
diff --git a/user_scanner/email_scan/news/foxnews.py b/user_scanner/email_scan/news/foxnews.py
index 1a103be..cbab987 100644
--- a/user_scanner/email_scan/news/foxnews.py
+++ b/user_scanner/email_scan/news/foxnews.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://id.fox.com/status/v1/status"
@@ -9,7 +10,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "*/*",
'Accept-Encoding': "gzip, deflate, br, zstd",
'x-api-key': "049f8b7844b84b9cb5f830f28f08648c",
diff --git a/user_scanner/email_scan/news/globaltimes.py b/user_scanner/email_scan/news/globaltimes.py
index 3c9e1f7..e34116c 100644
--- a/user_scanner/email_scan/news/globaltimes.py
+++ b/user_scanner/email_scan/news/globaltimes.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -14,7 +15,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json;charset=UTF-8",
'Token': "null",
'Vcode': "232",
diff --git a/user_scanner/email_scan/news/indiatimes.py b/user_scanner/email_scan/news/indiatimes.py
index f48b163..fe25024 100644
--- a/user_scanner/email_scan/news/indiatimes.py
+++ b/user_scanner/email_scan/news/indiatimes.py
@@ -1,6 +1,7 @@
import httpx
import json
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -11,7 +12,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'sdkversion': "0.8.1",
'channel': "toi",
diff --git a/user_scanner/email_scan/news/nytimes.py b/user_scanner/email_scan/news/nytimes.py
index 4e55ddb..a1f54e9 100644
--- a/user_scanner/email_scan/news/nytimes.py
+++ b/user_scanner/email_scan/news/nytimes.py
@@ -3,6 +3,7 @@ import json
import re
import html
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -11,7 +12,7 @@ async def _check(email: str) -> Result:
check_url = "https://myaccount.nytimes.com/svc/lire_ui/authorize-email/check"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
'Accept-Language': "en-US,en;q=0.9",
}
diff --git a/user_scanner/email_scan/other/eventbrite.py b/user_scanner/email_scan/other/eventbrite.py
index 7e82c7a..077f8bd 100644
--- a/user_scanner/email_scan/other/eventbrite.py
+++ b/user_scanner/email_scan/other/eventbrite.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': '*/*',
'Accept-Language': 'en,en-US;q=0.9',
'Referer': 'https://www.eventbrite.com/signin/',
diff --git a/user_scanner/email_scan/pipeline/axonaut.py b/user_scanner/email_scan/pipeline/axonaut.py
index ab239fb..8c499d8 100644
--- a/user_scanner/email_scan/pipeline/axonaut.py
+++ b/user_scanner/email_scan/pipeline/axonaut.py
@@ -1,11 +1,12 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
'authority': 'axonaut.com',
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'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.9',
'referer': 'https://axonaut.com/en',
'accept-language': 'en-US,en;q=0.9',
diff --git a/user_scanner/email_scan/pipeline/hubspot.py b/user_scanner/email_scan/pipeline/hubspot.py
index 4798764..2594faa 100644
--- a/user_scanner/email_scan/pipeline/hubspot.py
+++ b/user_scanner/email_scan/pipeline/hubspot.py
@@ -1,11 +1,12 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
'authority': 'api.hubspot.com',
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'content-type': 'application/json',
'origin': 'https://app.hubspot.com',
'referer': 'https://app.hubspot.com/',
diff --git a/user_scanner/email_scan/pipeline/insightly.py b/user_scanner/email_scan/pipeline/insightly.py
index 186a146..1e5e774 100644
--- a/user_scanner/email_scan/pipeline/insightly.py
+++ b/user_scanner/email_scan/pipeline/insightly.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -7,7 +8,7 @@ async def _check(email: str) -> Result:
'authority': 'accounts.insightly.com',
'accept': 'application/json, text/javascript, */*; q=0.01',
'x-requested-with': 'XMLHttpRequest',
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'origin': 'https://accounts.insightly.com',
'referer': 'https://accounts.insightly.com/?plan=trial',
diff --git a/user_scanner/email_scan/pipeline/zoho.py b/user_scanner/email_scan/pipeline/zoho.py
index 8c06336..590e471 100644
--- a/user_scanner/email_scan/pipeline/zoho.py
+++ b/user_scanner/email_scan/pipeline/zoho.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
'Accept': '*/*',
'Origin': 'https://accounts.zoho.com',
diff --git a/user_scanner/email_scan/shopping/flipkart.py b/user_scanner/email_scan/shopping/flipkart.py
index 472a105..a8dc563 100644
--- a/user_scanner/email_scan/shopping/flipkart.py
+++ b/user_scanner/email_scan/shopping/flipkart.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = "https://2.rome.api.flipkart.com/1/action/view"
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",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'X-User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36 FKUA/msite/0.0.3/msite/Mobile channelType/undefined",
'Origin': "https://www.flipkart.com",
diff --git a/user_scanner/email_scan/shopping/naturabuy.py b/user_scanner/email_scan/shopping/naturabuy.py
index a49e5e9..2b36b6a 100644
--- a/user_scanner/email_scan/shopping/naturabuy.py
+++ b/user_scanner/email_scan/shopping/naturabuy.py
@@ -1,9 +1,10 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': '*/*',
'Accept-Language': 'fr,fr-FR;q=0.9,en;q=0.8',
'X-Requested-With': 'XMLHttpRequest',
diff --git a/user_scanner/email_scan/shopping/vivino.py b/user_scanner/email_scan/shopping/vivino.py
index ec98457..797c6fe 100644
--- a/user_scanner/email_scan/shopping/vivino.py
+++ b/user_scanner/email_scan/shopping/vivino.py
@@ -1,9 +1,10 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': 'application/json',
'Referer': 'https://www.vivino.com/',
'Accept-Language': 'en-US,en;q=0.9',
diff --git a/user_scanner/email_scan/shopping/walmart.py b/user_scanner/email_scan/shopping/walmart.py
index c719a51..9b40c88 100644
--- a/user_scanner/email_scan/shopping/walmart.py
+++ b/user_scanner/email_scan/shopping/walmart.py
@@ -6,6 +6,7 @@ import hashlib
import base64
import secrets
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def generate_pkce_challenge():
@@ -48,7 +49,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Accept-Encoding': "identity",
'Content-Type': "application/json",
diff --git a/user_scanner/email_scan/social/facebook.py b/user_scanner/email_scan/social/facebook.py
index 0037ef5..8472a3c 100644
--- a/user_scanner/email_scan/social/facebook.py
+++ b/user_scanner/email_scan/social/facebook.py
@@ -1,13 +1,14 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
async with httpx.AsyncClient(http2=True, follow_redirects=False) as client:
try:
url1 = "https://m.facebook.com/login/"
headers1 = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'sec-ch-ua': '"Google Chrome";v="143", "Chromium";v="143", "Not A(Brand";v="24"',
@@ -17,7 +18,7 @@ async def _check(email: str) -> Result:
url2 = "https://www.facebook.com"
params2 = {'_rdr': ""}
headers2 = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'upgrade-insecure-requests': "1",
@@ -58,7 +59,7 @@ async def _check(email: str) -> Result:
}
headers3 = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "identity",
'sec-ch-ua-full-version-list': '"Google Chrome";v="143.0.7499.192", "Chromium";v="143.0.7499.192", "Not A(Brand";v="24.0.0.0"',
'sec-ch-ua-platform': '"Linux"',
diff --git a/user_scanner/email_scan/social/instagram.py b/user_scanner/email_scan/social/instagram.py
index 88b86b4..782e42e 100644
--- a/user_scanner/email_scan/social/instagram.py
+++ b/user_scanner/email_scan/social/instagram.py
@@ -1,10 +1,11 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
- user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
+ user_agent = get_random_user_agent()
try:
async with httpx.AsyncClient(headers={"user-agent": user_agent}, http2=True, timeout=15.0) as client:
diff --git a/user_scanner/email_scan/social/mastodon.py b/user_scanner/email_scan/social/mastodon.py
index 94b0d05..c69ec25 100644
--- a/user_scanner/email_scan/social/mastodon.py
+++ b/user_scanner/email_scan/social/mastodon.py
@@ -1,6 +1,7 @@
import httpx
import re
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email):
@@ -9,7 +10,7 @@ async def _check(email):
post_url = f"{base_url}/auth"
headers = {
- "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ "user-agent": get_random_user_agent(),
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
"referer": "https://mastodon.social/explore",
"origin": "https://mastodon.social"
diff --git a/user_scanner/email_scan/social/pinterest.py b/user_scanner/email_scan/social/pinterest.py
index f756cc8..7c7022a 100644
--- a/user_scanner/email_scan/social/pinterest.py
+++ b/user_scanner/email_scan/social/pinterest.py
@@ -2,6 +2,7 @@ import httpx
import json
import time
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -22,7 +23,7 @@ async def _check(email: str) -> Result:
}
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/javascript, */*, q=0.01",
'Accept-Language': "en-US,en;q=0.9",
'x-pinterest-pws-handler': "www/signup/[step].js",
diff --git a/user_scanner/email_scan/social/x.py b/user_scanner/email_scan/social/x.py
index 91a7d2a..436f3f4 100644
--- a/user_scanner/email_scan/social/x.py
+++ b/user_scanner/email_scan/social/x.py
@@ -1,11 +1,12 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email):
url = "https://api.x.com/i/users/email_available.json"
params = {"email": email}
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",
+ "user-agent": get_random_user_agent(),
"accept-encoding": "gzip, deflate, br, zstd",
"sec-ch-ua-platform": "\"Android\"",
"sec-ch-ua": "\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\"",
diff --git a/user_scanner/email_scan/sports/espn.py b/user_scanner/email_scan/sports/espn.py
index 4da92c3..65d93de 100644
--- a/user_scanner/email_scan/sports/espn.py
+++ b/user_scanner/email_scan/sports/espn.py
@@ -1,5 +1,6 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
@@ -9,7 +10,7 @@ async def _check(email: str) -> Result:
'feature': "no-password-reuse"
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Content-Type': "application/json",
'origin': "https://cdn.registerdisney.go.com",
'referer': "https://cdn.registerdisney.go.com/",
diff --git a/user_scanner/email_scan/sports/marca.py b/user_scanner/email_scan/sports/marca.py
index 767672e..00dacd3 100644
--- a/user_scanner/email_scan/sports/marca.py
+++ b/user_scanner/email_scan/sports/marca.py
@@ -1,12 +1,13 @@
import httpx
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
async def _check(email: str) -> Result:
url = f"https://seguro.marca.com/ueregistro/v2/usuarios/comprobacion/{email}/2"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Origin': "https://www.marca.com",
'Referer': "https://www.marca.com/",
diff --git a/user_scanner/user_scan/creator/hashnode.py b/user_scanner/user_scan/creator/hashnode.py
index 1098486..c9aa3e0 100644
--- a/user_scanner/user_scan/creator/hashnode.py
+++ b/user_scanner/user_scan/creator/hashnode.py
@@ -1,5 +1,6 @@
from user_scanner.core.result import Result
from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_hashnode(user):
@@ -11,7 +12,7 @@ def validate_hashnode(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",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Content-Type': "application/json",
'Origin': "https://hashnode.com",
diff --git a/user_scanner/user_scan/creator/medium.py b/user_scanner/user_scan/creator/medium.py
index 1f48e3a..566e671 100644
--- a/user_scanner/user_scan/creator/medium.py
+++ b/user_scanner/user_scan/creator/medium.py
@@ -1,12 +1,13 @@
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_medium(user):
url = f"https://medium.com/@{user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'upgrade-insecure-requests': "1",
diff --git a/user_scanner/user_scan/creator/producthunt.py b/user_scanner/user_scan/creator/producthunt.py
index 7bc5a68..41ba392 100644
--- a/user_scanner/user_scan/creator/producthunt.py
+++ b/user_scanner/user_scan/creator/producthunt.py
@@ -1,5 +1,6 @@
import re
from user_scanner.core.orchestrator import status_validate, Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_producthunt(user: str) -> Result:
@@ -13,7 +14,7 @@ def validate_producthunt(user: str) -> Result:
url = f"https://www.producthunt.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",
+ 'User-Agent': get_random_user_agent(),
'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",
'Accept-Language': "en-US,en;q=0.9",
diff --git a/user_scanner/user_scan/creator/substack.py b/user_scanner/user_scan/creator/substack.py
index 2b559de..87df281 100644
--- a/user_scanner/user_scan/creator/substack.py
+++ b/user_scanner/user_scan/creator/substack.py
@@ -1,5 +1,6 @@
import re
from user_scanner.core.orchestrator import status_validate, Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_substack(user: str) -> Result:
@@ -14,7 +15,7 @@ def validate_substack(user: str) -> Result:
url = f"https://{user}.substack.com"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'accept-language': "en-US,en;q=0.9",
diff --git a/user_scanner/user_scan/creator/twitch.py b/user_scanner/user_scan/creator/twitch.py
index d5036d5..242f456 100644
--- a/user_scanner/user_scan/creator/twitch.py
+++ b/user_scanner/user_scan/creator/twitch.py
@@ -2,6 +2,7 @@ import json
import re
import httpx
from user_scanner.core.orchestrator import generic_validate, Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_twitch(user: str) -> Result:
@@ -30,7 +31,7 @@ def validate_twitch(user: str) -> Result:
]
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",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "identity",
'Content-Type': "application/json",
'sec-ch-ua-platform': "\"Android\"",
diff --git a/user_scanner/user_scan/dev/cratesio.py b/user_scanner/user_scan/dev/cratesio.py
index 6376864..3145028 100644
--- a/user_scanner/user_scan/dev/cratesio.py
+++ b/user_scanner/user_scan/dev/cratesio.py
@@ -1,11 +1,12 @@
from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_cratesio(user):
url = f"https://crates.io/api/v1/users/{user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
'Referer': "https://crates.io/",
'sec-fetch-mode': "cors",
diff --git a/user_scanner/user_scan/dev/dockerhub.py b/user_scanner/user_scan/dev/dockerhub.py
index bdd5316..1ec90b7 100644
--- a/user_scanner/user_scan/dev/dockerhub.py
+++ b/user_scanner/user_scan/dev/dockerhub.py
@@ -1,11 +1,12 @@
from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_dockerhub(user):
url = f"https://hub.docker.com/v2/users/{user}/"
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json",
}
diff --git a/user_scanner/user_scan/dev/github.py b/user_scanner/user_scan/dev/github.py
index ee5aa62..5891c7b 100644
--- a/user_scanner/user_scan/dev/github.py
+++ b/user_scanner/user_scan/dev/github.py
@@ -1,11 +1,12 @@
from user_scanner.core.orchestrator import generic_validate, Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_github(user):
url = f"https://github.com/signup_check/username?value={user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "gzip, deflate, br, zstd",
'sec-ch-ua-platform': "\"Linux\"",
'sec-ch-ua': "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
diff --git a/user_scanner/user_scan/dev/gitlab.py b/user_scanner/user_scan/dev/gitlab.py
index d5346d0..4e6c367 100644
--- a/user_scanner/user_scan/dev/gitlab.py
+++ b/user_scanner/user_scan/dev/gitlab.py
@@ -1,12 +1,13 @@
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_gitlab(user):
url = f"https://gitlab.com/users/{user}/exists"
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'X-Requested-With': "XMLHttpRequest",
'Referer': "https://gitlab.com/users/sign_up",
diff --git a/user_scanner/user_scan/dev/launchpad.py b/user_scanner/user_scan/dev/launchpad.py
index 49af8c0..dfcebd5 100644
--- a/user_scanner/user_scan/dev/launchpad.py
+++ b/user_scanner/user_scan/dev/launchpad.py
@@ -1,11 +1,12 @@
from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_launchpad(user):
url = f"https://launchpad.net/~{user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9",
'Accept-Encoding': "gzip, deflate, br, zstd",
'Upgrade-Insecure-Requests': "1",
diff --git a/user_scanner/user_scan/dev/leetcode.py b/user_scanner/user_scan/dev/leetcode.py
index 128903a..057c809 100644
--- a/user_scanner/user_scan/dev/leetcode.py
+++ b/user_scanner/user_scan/dev/leetcode.py
@@ -1,5 +1,6 @@
import re
from user_scanner.core.orchestrator import status_validate, Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_leetcode(user: str) -> Result:
@@ -12,7 +13,7 @@ def validate_leetcode(user: str) -> Result:
url = f"https://leetcode.com/u/{user}/"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'upgrade-insecure-requests': "1",
diff --git a/user_scanner/user_scan/gaming/battlenet.py b/user_scanner/user_scan/gaming/battlenet.py
index af51faa..4631670 100644
--- a/user_scanner/user_scan/gaming/battlenet.py
+++ b/user_scanner/user_scan/gaming/battlenet.py
@@ -2,6 +2,7 @@ import re
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_battlenet(user: str) -> Result:
@@ -31,7 +32,7 @@ def validate_battlenet(user: str) -> Result:
url = f"https://overwatch.blizzard.com/en-us/search/account-by-name/{username}"
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",
+ "User-Agent": get_random_user_agent(),
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br, zstd",
}
diff --git a/user_scanner/user_scan/gaming/chess_com.py b/user_scanner/user_scan/gaming/chess_com.py
index 9ce4b54..c461144 100644
--- a/user_scanner/user_scan/gaming/chess_com.py
+++ b/user_scanner/user_scan/gaming/chess_com.py
@@ -1,12 +1,13 @@
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_chess_com(user):
url = f"https://www.chess.com/callback/user/valid?username={user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
+ 'User-Agent':get_random_user_agent(),
'Accept': "application/json, text/plain, */*",
'Accept-Encoding': "identity",
'Accept-Language': "en-US,en;q=0.9",
diff --git a/user_scanner/user_scan/gaming/monkeytype.py b/user_scanner/user_scan/gaming/monkeytype.py
index 81bfc15..c44c0d9 100644
--- a/user_scanner/user_scan/gaming/monkeytype.py
+++ b/user_scanner/user_scan/gaming/monkeytype.py
@@ -1,17 +1,14 @@
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
from urllib.parse import quote
+from user_scanner.core.helpers import get_random_user_agent
def validate_monkeytype(user: str) -> Result:
safe_user = quote(user, safe="")
url = f"https://api.monkeytype.com/users/checkName/{safe_user}"
headers = {
- "User-Agent": (
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
- "AppleWebKit/537.36 (KHTML, like Gecko) "
- "Chrome/128.0.0.0 Safari/537.36"
- ),
+ "User-Agent": get_random_user_agent(),
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "identity",
"Accept-Language": "en-US,en;q=0.9",
diff --git a/user_scanner/user_scan/social/bluesky.py b/user_scanner/user_scan/social/bluesky.py
index 690e667..d9e2cd0 100644
--- a/user_scanner/user_scan/social/bluesky.py
+++ b/user_scanner/user_scan/social/bluesky.py
@@ -1,5 +1,6 @@
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_bluesky(user):
@@ -7,7 +8,7 @@ def validate_bluesky(user):
url = "https://bsky.social/xrpc/com.atproto.temp.checkHandleAvailability"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "gzip",
'atproto-accept-labelers': "did:plc:ar7c4by46qjdydhdevvrndac;redact",
'sec-ch-ua-platform': "\"Android\"",
diff --git a/user_scanner/user_scan/social/instagram.py b/user_scanner/user_scan/social/instagram.py
index 2030e0b..fdbc754 100644
--- a/user_scanner/user_scan/social/instagram.py
+++ b/user_scanner/user_scan/social/instagram.py
@@ -1,4 +1,5 @@
from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_instagram(user):
url = "https://www.instagram.com/api/v1/users/web_profile_info/"
@@ -8,7 +9,7 @@ def validate_instagram(user):
}
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept-Encoding': "gzip, deflate, br, zstd",
'sec-ch-ua-full-version-list': "\"Not(A:Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"144.0.7559.132\", \"Google Chrome\";v=\"144.0.7559.132\"",
'sec-ch-ua-platform': "\"Linux\"",
diff --git a/user_scanner/user_scan/social/snapchat.py b/user_scanner/user_scan/social/snapchat.py
index 6c7a455..41cca13 100644
--- a/user_scanner/user_scan/social/snapchat.py
+++ b/user_scanner/user_scan/social/snapchat.py
@@ -1,11 +1,12 @@
from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_snapchat(user):
url = f"https://www.snapchat.com/@{user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'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\"",
diff --git a/user_scanner/user_scan/social/threads.py b/user_scanner/user_scan/social/threads.py
index d63bcce..e0168a2 100644
--- a/user_scanner/user_scan/social/threads.py
+++ b/user_scanner/user_scan/social/threads.py
@@ -1,10 +1,11 @@
from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_instagram(user):
url = f"https://www.threads.net/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",
+ 'User-Agent': get_random_user_agent(),
'X-IG-App-ID': "936619743392459",
'Accept': "application/json, text/javascript, */*; q=0.01",
'Accept-Encoding': "gzip, deflate, br",
diff --git a/user_scanner/user_scan/social/tiktok.py b/user_scanner/user_scan/social/tiktok.py
index 2faec7f..a456e5f 100644
--- a/user_scanner/user_scan/social/tiktok.py
+++ b/user_scanner/user_scan/social/tiktok.py
@@ -1,6 +1,7 @@
import re
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_tiktok(user: str) -> Result:
@@ -17,7 +18,7 @@ def validate_tiktok(user: str) -> Result:
return Result.error("Username cannot start nor end with a period")
headers = {
- 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
'Accept-Encoding': "identity",
'Accept-Language': "en-US,en;q=0.9",
diff --git a/user_scanner/user_scan/social/x.py b/user_scanner/user_scan/social/x.py
index 6bc9809..ae077c4 100644
--- a/user_scanner/user_scan/social/x.py
+++ b/user_scanner/user_scan/social/x.py
@@ -1,5 +1,6 @@
from user_scanner.core.result import Result
from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.helpers import get_random_user_agent
def validate_x(user):
url = "https://api.twitter.com/i/users/username_available.json"
@@ -12,7 +13,7 @@ def validate_x(user):
headers = {
"Authority": "api.twitter.com",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
+ "User-Agent": get_random_user_agent(),
}
def process(response):
diff --git a/user_scanner/user_scan/social/youtube.py b/user_scanner/user_scan/social/youtube.py
index 341463f..a92ba93 100644
--- a/user_scanner/user_scan/social/youtube.py
+++ b/user_scanner/user_scan/social/youtube.py
@@ -1,10 +1,11 @@
from user_scanner.core.orchestrator import status_validate, Result
+from user_scanner.core.helpers import get_random_user_agent
def validate_youtube(user) -> Result:
url = f"https://m.youtube.com/@{user}"
headers = {
- 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'User-Agent': get_random_user_agent(),
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
'Accept-Encoding': "identity",
'sec-ch-dpr': "2.75",