-
Notifications
You must be signed in to change notification settings - Fork 8
/
IG-Checker.py
67 lines (67 loc) · 4.65 KB
/
IG-Checker.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
try:import time,random,re;from colorama import Fore;from requests import get,post
except Exception as e:print(f'[!] Download The Missing Module ! , {e}');exit()
def saver(user):
ID=''#telegram id
token=''#telegram bot token
try:post(f'https://api.telegram.org/bot{token}/sendMessage?chat_id={ID}&text=• New username’s Claimed @{user} 🦦\n\nBy\t@TweakPY\t-\t@vv1ck')
except:pass
with open('Available.txt', 'a') as x:
x.write(user+'\n')
def without_list():
count,done,error=0,0,0
user=""
lena=input('[?] Length: ');length=(int(lena))
chars="qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm12345678901234567890"
while True:
for user in range(1):
user=""
for item in range(length):
user+=random.choice(chars)
ru=get(f'https://www.instagram.com/{user}/',headers={'Host': 'www.instagram.com','Cookie': 'ig_did==; datr=; csrftoken=; mid==; ig_nrcb=1','User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0','Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8','Accept-Language': 'ar,en-US;q=0.7,en;q=0.3','Accept-Encoding': 'gzip, deflate','Upgrade-Insecure-Requests': '1','Sec-Fetch-Dest': 'document','Sec-Fetch-Mode': 'navigate','Sec-Fetch-Site': 'none','Sec-Fetch-User': '?1','Cache-Control': 'max-age=0','Te': 'trailers'})
if user not in re.findall("<title>(.*?)</title>",ru.text)[0]:
print(f'\r[{Fore.MAGENTA}${Fore.RESET}] {Fore.GREEN} Available <{done}>{Fore.RESET} | {Fore.RED} Not Available <{error}>{Fore.RESET} | {Fore.LIGHTYELLOW_EX} count <{count}> {Fore.RESET} ',end='')
done+=1
count+=1
saver(user)
elif '• Instagram photos and videos' in re.findall("<title>(.*?)</title>",ru.text)[0]:
print(f'\r[{Fore.MAGENTA}${Fore.RESET}] {Fore.GREEN} Available <{done}>{Fore.RESET} | {Fore.RED} Not Available <{error}>{Fore.RESET} | {Fore.LIGHTYELLOW_EX} count <{count}> {Fore.RESET} ',end='')
error+=1
count+=1
else:
print(f'\r[{Fore.MAGENTA}${Fore.RESET}] {Fore.GREEN} Available <{done}>{Fore.RESET} | {Fore.RED} Not Available <{error}>{Fore.RESET} | {Fore.LIGHTYELLOW_EX} count <{count}> {Fore.RESET} ',end='')
error+=1
count+=1
def with_list():
error,count,done=0,0,0
try:file=open('user.txt', 'r')
except FileNotFoundError:exit('[!] No users File Detected - Note users file must be in user.txt File ..')
while True:
time.sleep(0.9)
user=file.readline().split('\n')[0]
ru=get(f'https://www.instagram.com/{user}/',headers={'Host': 'www.instagram.com','Cookie': 'ig_did==; datr=; csrftoken=; mid==; ig_nrcb=1','User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0','Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8','Accept-Language': 'ar,en-US;q=0.7,en;q=0.3','Accept-Encoding': 'gzip, deflate','Upgrade-Insecure-Requests': '1','Sec-Fetch-Dest': 'document','Sec-Fetch-Mode': 'navigate','Sec-Fetch-Site': 'none','Sec-Fetch-User': '?1','Cache-Control': 'max-age=0','Te': 'trailers'})
if user not in re.findall("<title>(.*?)</title>",ru.text)[0]:
print(f'\r[{Fore.MAGENTA}${Fore.RESET}] {Fore.GREEN} Available <{done}>{Fore.RESET} | {Fore.RED} Not Available <{error}>{Fore.RESET} | {Fore.LIGHTYELLOW_EX} count <{count}> {Fore.RESET} ',end='')
done+=1
count+=1
saver(user)
elif '• Instagram photos and videos' in re.findall("<title>(.*?)</title>",ru.text)[0]:
print(f'\r[{Fore.MAGENTA}${Fore.RESET}] {Fore.GREEN} Available <{done}>{Fore.RESET} | {Fore.RED} Not Available <{error}>{Fore.RESET} | {Fore.LIGHTYELLOW_EX} count <{count}> {Fore.RESET} ',end='')
error+=1
count+=1
else:
print(f'\r[{Fore.MAGENTA}${Fore.RESET}] {Fore.GREEN} Available <{done}>{Fore.RESET} | {Fore.RED} Not Available <{error}>{Fore.RESET} | {Fore.LIGHTYELLOW_EX} count <{count}> {Fore.RESET} ',end='')
error+=1
count+=1
print("""
██╗ ██████╗ ██████╗██╗ ██╗
██║██╔════╝ ██╔════╝██║ ██║
██║██║ ███╗█████╗██║ ███████║
██║██║ ██║╚════╝██║ ██╔══██║
██║╚██████╔╝ ╚██████╗██║ ██║
╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝
By @TweakPY - @vv1ck
""")
LW=int(input("[1] without List\n[2] with List\n---------------\nEnter > : "))
if LW==1:without_list()
elif LW==2:with_list()
else:exit('\n[!] Exit... \n\nBy @TweakPY - @vv1ck')