Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. #made by Jake#4626
  2. import requests, os
  3. from threading import Thread
  4.  
  5. writedata = []
  6. threads = []
  7.  
  8. def AccountChecker(username):
  9.     API = requests.get("https://www.roblox.com/UserCheck/DoesUsernameExist?username={}".format(username)).json()
  10.     if not API["success"]:
  11.         print("{} : Not taken \n".format(username))
  12.         writedata.append(username + " : Not taken \n")
  13.     else:
  14.         print("{} : Taken \n".format(username))
  15.         writedata.append(username + " : Taken \n")
  16.  
  17. os.chdir(os.path.dirname(__file__))
  18. with open("names.txt", "r") as txt:
  19.     for line in txt:
  20.         newThread = Thread(target=AccountChecker, args=(line.strip("\n"),)); newThread.start()
  21.         threads.append(newThread)
  22.     for thread in threads:
  23.         thread.join()
  24. with open("names.txt", "w") as txt:
  25.     txt.write("[Made by Jake #4626] \n")
  26.     txt.writelines(writedata)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement