Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MCACCOUNTFINDER.PY - Austin Lincoln (Rightful property of Marcus Mikelic)
- # IMPORTS
- import requests
- import ast
- import random
- import os
- import time
- # VAR DECLAR
- english_dictionary_object = requests.get("http://www.mieliestronk.com/corncob_lowercase.txt")
- english_dictionary_string = english_dictionary_object.text
- english = english_dictionary_string.split("\n")
- # FUNCTIONS
- def account_avaiable(name):
- try:
- response = requests.get("https://api.mojang.com/users/profiles/minecraft/" + str(name))
- if response.text != "" or None:
- pass
- else:
- available = "y"
- return available
- except:
- not_available = "n"
- return not_available
- def generate_account_name():
- name = " "
- while True:
- name = random.choice(list(english))
- if len(name) < 17:
- if len(name) > 2:
- return name
- def allwords():
- for i in range(1):
- print('=-- OG ACCOUNT SCAN: ' + str(len(english)) + " NAMES ---=\n\n")
- i = 0
- amount = len(english)
- for i in range(len(english)):
- name = english[i]
- i += 1
- av = account_avaiable(name)
- if av == "y":
- print("Found! ---> " + str(name) + " (" + str(i) + "/" + str(amount)+ ")")
- input("")
- # PROGRAM
- while True:
- list_of_previous_names = []
- os.system('cls')
- amount = input("How many og accounts would you like? ")
- show_web = input("Would you like websites to show (y/n)? ")
- os.system('cls')
- print('=-- OG ACCOUNT SCAN: ' + str(amount) + " ACCOUNTS ---=\n\n")
- i = 0
- amount_found = 0
- while int(amount_found) != int(amount):
- i += 1
- name = generate_account_name()
- av = account_avaiable(name)
- if av == "y":
- if name in list_of_previous_names:
- pass
- else:
- amount_found += 1
- print("Found! ---> " + str(name) + " (" + str(amount_found) + "/" + str(amount) + " - " + str(i) + " tries!)")
- list_of_previous_names.append(name)
- if show_web == "y":
- os.system('start https://namemc.com/search?q=' + str(name))
- else:
- pass
- ## while int(amount_found) != int(amount):
- ## i += 1
- ## name = generate_account_name()
- ## av = account_avaiable(name)
- ## if av == "y":
- ## if name in list_of_previous_names:
- ## pass
- ## else:
- ## site = requests.get("https://namemc.com/search?q=" + str(name))
- ## aval = "Available" in site.text
- ## print(aval)
- ## if aval == True:
- ## print("Found! ---> " + str(name) + " (" + str(amount_found) + "/" + str(amount) + " - " + str(i) + " tries!)")
- ## list_of_previous_names.append(name)
- ## amount_found += 1
- ## if show_web == "y":
- ## os.system('start https://namemc.com/search?q=' + str(name))
- ## else:
- ## pass
- input("\nDone!")
Advertisement
Add Comment
Please, Sign In to add comment