mirror of
https://github.com/uhIgnacio/SpotifyAccountCreator.git
synced 2024-08-14 23:01:06 +00:00
small changes
This commit is contained in:
parent
36e97c09ac
commit
d7af74b37c
1 changed files with 9 additions and 7 deletions
16
main.py
16
main.py
|
@ -3,12 +3,6 @@ import os
|
||||||
from colorama import Fore, init
|
from colorama import Fore, init
|
||||||
|
|
||||||
|
|
||||||
def Clear():
|
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
|
||||||
|
|
||||||
|
|
||||||
Clear()
|
|
||||||
|
|
||||||
init()
|
init()
|
||||||
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}')
|
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}')
|
||||||
email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}')
|
email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}')
|
||||||
|
@ -46,9 +40,17 @@ resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account",
|
||||||
}).json()
|
}).json()
|
||||||
|
|
||||||
if "\"login_token\"" in resp:
|
if "\"login_token\"" in resp:
|
||||||
|
os.system("cls" if os.name == "nt" else "clear")
|
||||||
print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}')
|
print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}')
|
||||||
|
os.system("pause" if os.name ==
|
||||||
|
"nt" else "read -p \"Press any key to resume ...\"")
|
||||||
elif "That email is already" in resp:
|
elif "That email is already" in resp:
|
||||||
|
os.system("cls" if os.name == "nt" else "clear")
|
||||||
print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email')
|
print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email')
|
||||||
|
os.system("pause" if os.name ==
|
||||||
|
"nt" else "read -p \"Press any key to resume ...\"")
|
||||||
else:
|
else:
|
||||||
|
os.system("cls" if os.name == "nt" else "clear")
|
||||||
print(f'{Fore.LIGHTRED_EX}You got a error! please open issue on GitHub or try with other name and/or disable proxy/VPN')
|
print(f'{Fore.LIGHTRED_EX}You got a error! please open issue on GitHub or try with other name and/or disable proxy/VPN')
|
||||||
|
os.system("pause" if os.name ==
|
||||||
|
"nt" else "read -p \"Press any key to resume ...\"")
|
||||||
|
|
Loading…
Reference in a new issue