user-scanner 1.1.0.7__py3-none-any.whl → 1.1.0.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- user_scanner/email_scan/music/lastfm.py +1 -9
- user_scanner/email_scan/shopping/envato.py +30 -23
- user_scanner/version.json +1 -1
- {user_scanner-1.1.0.7.dist-info → user_scanner-1.1.0.8.dist-info}/METADATA +2 -2
- {user_scanner-1.1.0.7.dist-info → user_scanner-1.1.0.8.dist-info}/RECORD +8 -8
- {user_scanner-1.1.0.7.dist-info → user_scanner-1.1.0.8.dist-info}/WHEEL +0 -0
- {user_scanner-1.1.0.7.dist-info → user_scanner-1.1.0.8.dist-info}/entry_points.txt +0 -0
- {user_scanner-1.1.0.7.dist-info → user_scanner-1.1.0.8.dist-info}/licenses/LICENSE +0 -0
|
@@ -48,7 +48,7 @@ async def _check(email: str) -> Result:
|
|
|
48
48
|
return Result.available()
|
|
49
49
|
|
|
50
50
|
else:
|
|
51
|
-
return Result.error(
|
|
51
|
+
return Result.error("Unexpected response body, report it via GitHub issues")
|
|
52
52
|
|
|
53
53
|
except httpx.TimeoutException:
|
|
54
54
|
return Result.error("Connection timed out")
|
|
@@ -58,11 +58,3 @@ async def _check(email: str) -> Result:
|
|
|
58
58
|
|
|
59
59
|
async def validate_lastfm(email: str) -> Result:
|
|
60
60
|
return await _check(email)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
@@ -1,41 +1,48 @@
|
|
|
1
1
|
import httpx
|
|
2
2
|
from user_scanner.core.result import Result
|
|
3
3
|
|
|
4
|
+
|
|
4
5
|
async def _check(email: str) -> Result:
|
|
6
|
+
url = "https://account.envato.com/api/public/validate_email"
|
|
7
|
+
|
|
5
8
|
headers = {
|
|
6
9
|
'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
|
|
7
|
-
'Accept':
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
10
|
+
'Accept': "application/json",
|
|
11
|
+
'Content-Type': "application/json",
|
|
12
|
+
'x-client-version': "3.6.0",
|
|
13
|
+
'origin': "https://elements.envato.com",
|
|
14
|
+
'referer': "https://elements.envato.com/",
|
|
15
|
+
'accept-language': "en-US,en;q=0.9",
|
|
12
16
|
}
|
|
13
17
|
|
|
14
|
-
payload = {
|
|
18
|
+
payload = {
|
|
19
|
+
"language_code": "en",
|
|
20
|
+
"email": email
|
|
21
|
+
}
|
|
15
22
|
|
|
16
23
|
try:
|
|
17
|
-
async with httpx.AsyncClient(timeout=
|
|
18
|
-
response = await client.post(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
data=payload
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
if 'Email is already in use' in response.text:
|
|
25
|
-
return Result.taken()
|
|
26
|
-
|
|
27
|
-
if response.status_code == 200:
|
|
24
|
+
async with httpx.AsyncClient(timeout=5.0) as client:
|
|
25
|
+
response = await client.post(url, json=payload, headers=headers)
|
|
26
|
+
|
|
27
|
+
if response.status_code == 204:
|
|
28
28
|
return Result.available()
|
|
29
|
-
|
|
30
|
-
if
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
|
|
30
|
+
if response.status_code == 422:
|
|
31
|
+
data = response.json()
|
|
32
|
+
error_msg = data.get("error_message", "").lower()
|
|
33
|
+
|
|
34
|
+
if "already in use" in error_msg:
|
|
35
|
+
return Result.taken()
|
|
36
|
+
|
|
37
|
+
return Result.error("Unexpected response body, report it via GitHub issues")
|
|
38
|
+
|
|
39
|
+
return Result.error(f"HTTP {response.status_code}")
|
|
34
40
|
|
|
35
41
|
except httpx.TimeoutException:
|
|
36
42
|
return Result.error("Connection timed out")
|
|
37
43
|
except Exception as e:
|
|
38
|
-
return Result.error(
|
|
44
|
+
return Result.error(f"Unexpected Exception: {e}")
|
|
45
|
+
|
|
39
46
|
|
|
40
47
|
async def validate_envato(email: str) -> Result:
|
|
41
48
|
return await _check(email)
|
user_scanner/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: user-scanner
|
|
3
|
-
Version: 1.1.0.
|
|
3
|
+
Version: 1.1.0.8
|
|
4
4
|
Summary: Check username availability across multiple popular platforms
|
|
5
5
|
Keywords: username,checker,availability,social,tech,python,user-scanner
|
|
6
6
|
Author-email: Kaif <kafcodec@gmail.com>
|
|
@@ -16,7 +16,7 @@ Project-URL: Homepage, https://github.com/kaifcodec/user-scanner
|
|
|
16
16
|
|
|
17
17
|

|
|
18
18
|
<p align="center">
|
|
19
|
-
<img src="https://img.shields.io/badge/Version-1.1.0.
|
|
19
|
+
<img src="https://img.shields.io/badge/Version-1.1.0.8-blueviolet?style=for-the-badge&logo=github" />
|
|
20
20
|
<img src="https://img.shields.io/github/issues/kaifcodec/user-scanner?style=for-the-badge&logo=github" />
|
|
21
21
|
<img src="https://img.shields.io/badge/Tested%20on-Termux-black?style=for-the-badge&logo=termux" />
|
|
22
22
|
<img src="https://img.shields.io/badge/Tested%20on-Windows-cyan?style=for-the-badge&logo=Windows" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
user_scanner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
user_scanner/__main__.py,sha256=6ecuWBMKZQLwmz7hSYcOk2uwSxj3jpYqYVI-2ti0zmA,10848
|
|
3
3
|
user_scanner/config.json,sha256=QZoyeipL-558-lO5bwmAImgBJLG2za3lritYwoQ5kb0,33
|
|
4
|
-
user_scanner/version.json,sha256=
|
|
4
|
+
user_scanner/version.json,sha256=bhQk_KQ-doksoerrdTZm9kdAR_k9obusvBtKcBg4ID4,49
|
|
5
5
|
user_scanner/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
user_scanner/cli/banner.py,sha256=3b4PIggnJrmxF4DfbuPMqSavpwNl0m5uedaOL2SXN3o,766
|
|
7
7
|
user_scanner/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -45,7 +45,7 @@ user_scanner/email_scan/hosting/render.py,sha256=6G66ftbCzSW_taMoqIyF9CQ9sVIL7PD
|
|
|
45
45
|
user_scanner/email_scan/learning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
user_scanner/email_scan/learning/duolingo.py,sha256=rLKLH-iwCvNtCxPd7UZcgTXssOzVKaDLl3d8TePYjHo,1297
|
|
47
47
|
user_scanner/email_scan/music/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
|
-
user_scanner/email_scan/music/lastfm.py,sha256=
|
|
48
|
+
user_scanner/email_scan/music/lastfm.py,sha256=oKTYELiu4I9OUmSe3Cv-w00lx8lFACeXpO8Yo3OoDjM,2056
|
|
49
49
|
user_scanner/email_scan/music/spotify.py,sha256=jzFa9p1IWnAYDK7k7NTJ7ipmrGqmK_PVrUQ4otjldkU,3659
|
|
50
50
|
user_scanner/email_scan/other/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
user_scanner/email_scan/other/eventbrite.py,sha256=WLSN5xTlG9YkZbP4lyyE8Ob0NyGcv_T9BVb5bQ-SzaE,1748
|
|
@@ -55,7 +55,7 @@ user_scanner/email_scan/pipeline/hubspot.py,sha256=OOYHqpjKh525iJi9_txuZGyX97tvZ
|
|
|
55
55
|
user_scanner/email_scan/pipeline/insightly.py,sha256=JdoktrXj3E6WmyMf_6VTD13YCxp4908MXALF5_QkIV8,1518
|
|
56
56
|
user_scanner/email_scan/pipeline/zoho.py,sha256=tGnLqzLwqb1eJF0qmWzG-T9g0g3Ax2C6ERG2N14aeo8,2098
|
|
57
57
|
user_scanner/email_scan/shopping/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
|
-
user_scanner/email_scan/shopping/envato.py,sha256=
|
|
58
|
+
user_scanner/email_scan/shopping/envato.py,sha256=auWstkpkufEzfSb89ko-cEkK3TQsKePlCu7VyondC2A,1547
|
|
59
59
|
user_scanner/email_scan/shopping/flipkart.py,sha256=wMQJ1VIawhM6W0UQCThcIUtaYN7QeexvJSRSeXS4l04,1879
|
|
60
60
|
user_scanner/email_scan/shopping/naturabuy.py,sha256=vMcoG4JK7-WhpYTTGQ5wc55guUigFzHbG19zgaf8oJU,1517
|
|
61
61
|
user_scanner/email_scan/shopping/vivino.py,sha256=vdJETvtQVPXX5o02AwkS9Jw7FIl350SUADUr1f1nOak,1588
|
|
@@ -127,8 +127,8 @@ user_scanner/user_scan/social/youtube.py,sha256=UPu584teg75P7FT05RFG3nobbHgPmzjr
|
|
|
127
127
|
user_scanner/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
128
128
|
user_scanner/utils/update.py,sha256=Rj3kLuUrQ-LlKGB7bkndqVjj0IUqugbDSj2SUrPRidE,936
|
|
129
129
|
user_scanner/utils/updater_logic.py,sha256=tl6kbKL02DrP-R1dkQWhHr12juVDgkJZZvKAfbI1ruU,2381
|
|
130
|
-
user_scanner-1.1.0.
|
|
131
|
-
user_scanner-1.1.0.
|
|
132
|
-
user_scanner-1.1.0.
|
|
133
|
-
user_scanner-1.1.0.
|
|
134
|
-
user_scanner-1.1.0.
|
|
130
|
+
user_scanner-1.1.0.8.dist-info/entry_points.txt,sha256=XqU3kssYZ0vXaPy5qYUOTCu4u-48Xie7QWFpBCYc7Nc,59
|
|
131
|
+
user_scanner-1.1.0.8.dist-info/licenses/LICENSE,sha256=XH1QyQG68zo1opDIZHTHcTAbe9XMzewvTaFTukcN9vc,1061
|
|
132
|
+
user_scanner-1.1.0.8.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
133
|
+
user_scanner-1.1.0.8.dist-info/METADATA,sha256=DI8wuZ-5e29m5rawXKDHz7TR1sS9ZfiBF6N5etuCiEY,8768
|
|
134
|
+
user_scanner-1.1.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|