mirror of
https://github.com/uhIgnacio/SpotifyAccountCreator.git
synced 2024-08-14 23:01:06 +00:00
show response text
This commit is contained in:
parent
d7af74b37c
commit
f89ed9cc32
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -37,20 +37,20 @@ resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account",
|
||||||
"sec-gpc": "1",
|
"sec-gpc": "1",
|
||||||
"referer": "https://www.spotify.com/",
|
"referer": "https://www.spotify.com/",
|
||||||
"referrer-policy": "strict-origin-when-cross-origin"
|
"referrer-policy": "strict-origin-when-cross-origin"
|
||||||
}).json()
|
})
|
||||||
|
|
||||||
if "\"login_token\"" in resp:
|
if "\"login_token\"" in resp:
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
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}\nResponse: {resp.text}')
|
||||||
os.system("pause" if os.name ==
|
os.system("pause" if os.name ==
|
||||||
"nt" else "read -p \"Press any key to resume ...\"")
|
"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")
|
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\nResponse: {resp.text}')
|
||||||
os.system("pause" if os.name ==
|
os.system("pause" if os.name ==
|
||||||
"nt" else "read -p \"Press any key to resume ...\"")
|
"nt" else "read -p \"Press any key to resume ...\"")
|
||||||
else:
|
else:
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
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\nResponse: {resp.text}')
|
||||||
os.system("pause" if os.name ==
|
os.system("pause" if os.name ==
|
||||||
"nt" else "read -p \"Press any key to resume ...\"")
|
"nt" else "read -p \"Press any key to resume ...\"")
|
||||||
|
|
Loading…
Reference in a new issue