Update main.py

This commit is contained in:
exploits 2021-12-01 10:15:02 +00:00 committed by GitHub
parent 1d65a01b3a
commit 27ea19261b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 10 deletions

25
main.py
View File

@ -1,12 +1,15 @@
import requests, os
from colorama import Fore, init
def pse():
os.system('pause')
pse()
import random
import string
source = string.ascii_letters + string.digits
init()
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}')
email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}')
password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}')
username = ''.join((random.choice(source) for i in range(12)))
email = (f'{username}') + "@" + "gmail.com"
password = ''.join((random.choice(source) for i in range(16)))
resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={
"birth_day": "1",
@ -40,13 +43,15 @@ resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account",
})
if "login_token" in resp.text:
print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTMAGENTA_EX}{username}:{Fore.LIGHTMAGENTA_EX}{password}\nResponse: {resp.text}')
pse()
with open('logins.txt', 'a') as f:
f.write(f'{email}:{username}:{password}')
f.write('\n')
print(f'{Fore.LIGHTGREEN_EX}Account Created\n ')
elif "That email is already" or "Invalid Email" in resp.text:
print(f'{Fore.LIGHTRED_EX}You got an error! Please try using a different email\nResponse: {resp.text}')
pse()
exit()
else:
print(f'{Fore.LIGHTRED_EX}You got an error! Try with a different username and/or disable your proxy/VPN. If that doesn\'t work, please open issue on GitHub \nResponse: {resp.text} \n {resp.status_code}')
pse()
exit()