2021-09-01 16:50:16 +00:00
import requests , os
2021-08-27 11:40:58 +00:00
from colorama import Fore , init
2021-09-01 16:50:16 +00:00
def pse ( ) :
os . system ( ' pause ' )
pse ( )
2021-08-27 05:35:17 +00:00
init ( )
2021-08-27 11:40:58 +00:00
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 } ' )
2021-08-27 05:35:17 +00:00
2021-09-01 16:50:16 +00:00
data = {
" birth_day " : " 1 " ,
" birth_month " : " 01 " ,
" birth_year " : " 1970 " ,
2021-08-27 05:35:17 +00:00
" collect_personal_info " : " undefined " ,
2021-09-01 16:50:16 +00:00
" creation_point " : " https://www.spotify.com/us/ " ,
" displayname " : username ,
" email " : email ,
" gender " : " male " ,
" iagree " : " 1 " ,
" key " : " a1e486e2729f46d6bb368d6b2bcda326 " ,
" password " : password ,
" password_repeat " : password ,
" username " : username ,
}
2021-08-27 11:40:58 +00:00
2021-09-01 16:50:16 +00:00
resp = requests . post ( ' https://spclient.wg.spotify.com/signup/public/v1/account ' , data = data )
if " login_token " in resp . text :
2021-09-01 06:47:37 +00:00
print ( f ' { Fore . LIGHTGREEN_EX } Account Created \n Login: { Fore . LIGHTBLUE_EX } { username } : { Fore . LIGHTBLACK_EX } { password } \n Response: { resp . text } ' )
2021-09-01 16:50:16 +00:00
pse ( )
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 \n Response: { resp . text } ' )
pse ( )
2021-08-27 05:24:41 +00:00
else :
2021-09-01 16:50:16 +00:00
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 \n Response: { resp . text } \n { resp . status_code } ' )
pse ( )