Mine
traderLyfe opened this issue · 2 comments
from os import system
system('pip install requests')
print('=========\n\n')
print("""
/ / / _ / /____ _ / __ ) / /
/ / / / _ / /// _ / / / |\ /
/ // / / / __/ ,< / __/ / / // / / /
_////_//||_// // //
| |/ / // /| |/ // __/ \
| / // /| // / / / / /
/ / / |/ // // /
//|| // //|//___/
""")
from time import sleep,time,strftime
from requests import get,post,session
from uuid import uuid4
import string
import random
browser = session()
u = 'Instagram 123.1.0.26.114 (iPhone8s)'
def get_random_acc():
# Random string with the combination of lower and upper case
letters = string.ascii_letters
return ''.join(random.choice(letters).lower() for i in range(4))
def login():
global data,session_id,csr
data = {
'username':input('User: '),
'password':input('Password: '),
'device_id':str( uuid4() )
}
global log
log = browser.post("https://i.instagram.com/api/v1/accounts/login/",data=data, headers={'User-Agent': u}).text
if 'logged_in_user' in log:
session_id = browser.cookies.get_dict()['sessionid']
csr = browser.cookies.get_dict()['csrftoken']
else:
if input('See Result? y/n: ') == 'y':
print(log)
login()
login()
num = int(input('How Many Accounts ? (1=400 user): ' ))
for _ in range(num):
user = get_random_acc()
source = get(f'https://www.instagram.com/{user}',headers = {'x-csrftoken':csr},cookies={'sessionid':session_id}).text
if 'href="/static/bundles/es6/HttpErrorPage.js' in source:
print(f'{user}: Available')
Available= open('Available.txt','a')
Available.write(user+'\n')
Available.close()
else:
print(f'{user}: Not Available')
input('Done!\nPress Enter To Close.. ')
+964 772 222 2626