Advertisement
paster442

Available 3-letter Usernames for Scratch

Jul 28th, 2021 (edited)
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | None | 0 0
  1. from requests import get
  2. from time import time
  3.  
  4. start_time = time()
  5.  
  6. alphabet1 = ['O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '_', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
  7. alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '_', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
  8. onlyletters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
  9. other = ['-', '_']
  10. nums = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
  11.  
  12. for char1 in alphabet1:
  13.     for char2 in alphabet:
  14.         for char3 in alphabet:
  15.             user = char1 + char2 + char3
  16.             if (not (char1 in onlyletters and char2 in onlyletters and char3 in onlyletters)) and not (char1 in other and char2 in other and char3 in other) and not (char1 in nums and char2 in nums and char3 in nums):
  17.                 if get('https://api.scratch.mit.edu/accounts/checkusername/' + user).text == '{"username":"' + user + '","msg":"valid username"}':
  18.                     print(user)
  19.                    
  20. print(str(round((time() - start_time)/3600, 3)) + " hours execution time")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement