SpotifyAccountCreator/main.py

38 lines
1.4 KiB
Python
Raw Normal View History

2021-08-27 11:44:51 +00:00
import requests, os
2021-08-27 11:40:58 +00:00
from colorama import Fore, init
2021-08-27 11:44:51 +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-08-27 11:40:58 +00:00
data = {
"birth_day": "1",
"birth_month": "01",
"birth_year": "2000",
2021-08-27 05:35:17 +00:00
"collect_personal_info": "undefined",
2021-08-27 11:40:58 +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,
}
resp = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account', data=data)
if "\"login_token\"" in resp:
print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}\nResponse: {resp.text}')
2021-08-27 11:44:51 +00:00
pse()
2021-08-27 05:24:41 +00:00
2021-08-27 11:40:58 +00:00
elif "That email is already" or "Valid Email" in resp:
print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email\nResponse: {resp.text}')
2021-08-27 11:44:51 +00:00
pse()
2021-08-27 05:24:41 +00:00
else:
2021-08-27 11:40:58 +00:00
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}')
2021-08-27 11:44:51 +00:00
pse()