-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchessUserChecker.py
53 lines (48 loc) · 4.54 KB
/
chessUserChecker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import requests
from termcolor import colored
import time
import concurrent.futures
import os
os.system('title Chess.com Username Checker @socialmediaboosterlb')
available = open('availableChess.txt', 'a+')
notAvailable = open('notAvailableChess.txt', 'a+')
def check(user):
validtxt='"valid":true'
invalidtxt='"valid":false'
link = "https://www.chess.com/callback/user/valid?username="+user
response= requests.get(link).text
if validtxt in response:
print(colored("[+]AVAILABLE "+ user,'green'))
available.write(user + "\n")
elif invalidtxt in response:
print(colored("[-]TAKEN "+ user,'red'))
notAvailable.write(user + "\n")
else:
pass
print(colored('''
░█████╗░██╗░░██╗███████╗░██████╗░██████╗░░░░█████╗░░█████╗░███╗░░░███╗
██╔══██╗██║░░██║██╔════╝██╔════╝██╔════╝░░░██╔══██╗██╔══██╗████╗░████║
██║░░╚═╝███████║█████╗░░╚█████╗░╚█████╗░░░░██║░░╚═╝██║░░██║██╔████╔██║
██║░░██╗██╔══██║██╔══╝░░░╚═══██╗░╚═══██╗░░░██║░░██╗██║░░██║██║╚██╔╝██║
╚█████╔╝██║░░██║███████╗██████╔╝██████╔╝██╗╚█████╔╝╚█████╔╝██║░╚═╝░██║
░╚════╝░╚═╝░░╚═╝╚══════╝╚═════╝░╚═════╝░╚═╝░╚════╝░░╚════╝░╚═╝░░░░░╚═╝
██╗░░░██╗░██████╗███████╗██████╗░███╗░░██╗░█████╗░███╗░░░███╗███████╗
██║░░░██║██╔════╝██╔════╝██╔══██╗████╗░██║██╔══██╗████╗░████║██╔════╝
██║░░░██║╚█████╗░█████╗░░██████╔╝██╔██╗██║███████║██╔████╔██║█████╗░░
██║░░░██║░╚═══██╗██╔══╝░░██╔══██╗██║╚████║██╔══██║██║╚██╔╝██║██╔══╝░░
╚██████╔╝██████╔╝███████╗██║░░██║██║░╚███║██║░░██║██║░╚═╝░██║███████╗
░╚═════╝░╚═════╝░╚══════╝╚═╝░░╚═╝╚═╝░░╚══╝╚═╝░░╚═╝╚═╝░░░░░╚═╝╚══════╝
░█████╗░██╗░░██╗███████╗░█████╗░██╗░░██╗███████╗██████╗░
██╔══██╗██║░░██║██╔════╝██╔══██╗██║░██╔╝██╔════╝██╔══██╗
██║░░╚═╝███████║█████╗░░██║░░╚═╝█████═╝░█████╗░░██████╔╝
██║░░██╗██╔══██║██╔══╝░░██║░░██╗██╔═██╗░██╔══╝░░██╔══██╗
╚█████╔╝██║░░██║███████╗╚█████╔╝██║░╚██╗███████╗██║░░██║
░╚════╝░╚═╝░░╚═╝╚══════╝░╚════╝░╚═╝░░╚═╝╚══════╝╚═╝░░╚═╝
https://github.com/socialmediaboosterlb Discord:socialmediabooster#9199
''','yellow'))
lol = input(colored("press Enter to start checking","yellow"))
time.sleep(.5)
with open('usernames.txt', 'r') as f:
users = [line.strip() for line in f]
with concurrent.futures.ThreadPoolExecutor() as executor:
executor.map(check,users)