Skip to content

Instantly share code, notes, and snippets.

@e96031413
Created February 17, 2020 00:07
Show Gist options
  • Save e96031413/b59fd61cc8adc8b6877798743235ecc7 to your computer and use it in GitHub Desktop.
Save e96031413/b59fd61cc8adc8b6877798743235ecc7 to your computer and use it in GitHub Desktop.
Create multiple gmail account at one time
def dot_trick(username):
emails = list()
username_length = len(username)
combinations = pow(2, username_length - 1)
padding = "{0:0" + str(username_length - 1) + "b}"
for i in range(0, combinations):
bin = padding.format(i)
full_email = ""
for j in range(0, username_length - 1):
full_email += (username[j]);
if bin[j] == "1":
full_email += "."
full_email += (username[j + 1])
emails.append(full_email + "@gmail.com")
return emails
username = input("Give Username(eg. bipinrai.rai123) = ")
print(*dot_trick(username) , sep="\n")
ex = input("Done :-), Press ctrl + c to exit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment